Page types (Home page, Category, Product, etc.) let you target precisely where your AI Shopping Assistant is displayed. iAdvize automatically detects the type of each page visited, and you can create custom rules to correct or supplement this detection.
This article explains how automatic detection works, how to create your own rules and how to check the result with the URL troubleshooter.
Accessing page type configuration
Go to Settings > Page types.
How automatic detection works
If you use the new version of engagement strategies, iAdvize automatically detects the type of each page visited on your site by analysing its URL: keywords, structure, etc.
Page types:
- Home page
- Product
- Category
- Search result
- Purchase funnel
- Other
How custom rules work
A custom rule assigns a page type to the pages that meet a condition on:
- the page URL
- custom data sent by your site
A rule only applies to the pages it targets, and takes priority over automatic detection on those pages. All other pages keep the type found by automatic detection.
/p” to the Product page type.- A page whose URL contains
/pis classified as Product, whatever automatic detection finds. - A page whose URL matches no custom rule keeps the type found by automatic detection. It can still be classified as Product.
Example: the rule “URL contains
/sale” classifies pages as Category and the rule “URL contains /p” classifies pages as Product. The page https://myshop.com/sale/p-134 matches both rules: it can be classified as Category or Product.
Creating a custom rule
You can create one or more rules for each page type. Rules for the same page type are linked by an “OR”: if at least one rule matches, the page type is applied.
/Sale and /sale give the same result.
Based on URL
- Click on the page type you want to customise.
- Click on Add custom rule.
- Choose URL as the criterion.
- Choose the condition:
-
Contains: the URL contains a string.
Example:/product -
Does not contain: the URL does not contain a string.
Example:/product -
Starts with: the URL starts with a specific string.
Example:https://myshop.com/cat- -
Is: the URL exactly matches a value.
Example:https://myshop.com/product-134 -
Is not: the URL is different from a value.
Example:https://myshop.com/product-134 -
Ends with: the URL ends with a specific string.
Example:.html -
Regex: groups several keywords in the same rule with the
|separator.
Example:(t-shirt|fleece)targets URLs that contain “t-shirt” or “fleece”. -
Not regex: excludes several keywords in the same rule with the
|separator.
Example:(t-shirt|fleece)targets URLs that contain neither “t-shirt” nor “fleece”.
-
Contains: the URL contains a string.
- Enter the condition value.
- Check the page type that will be applied.
- Click on Add.
Example: the rule “URL does not contain
/p” for the Category type classifies as Category every page without /p in its URL: your home page, your search results, your basket, etc.
Based on custom data
- Click on the page type you want to customise.
- Click on Add custom rule.
- Choose the custom data you want from the drop-down list.
- Choose the condition: the same as for the URL, applied to the data value.
Example: the datapage_categoryIsproduct. - Enter the custom data value.
- Check the page type that will be applied.
- Click on Add.
Testing URL detection
The URL troubleshooter tells you which page type a URL is assigned to.
- Enter the full URL you want to test (example:
https://myshop.com/product-134). - Click on Check URL.
The result shows:
- the assigned page type (in the example:
Product); - the source: custom rule or automatic detection (in the example:
Auto detected); - the matching custom rule, if any (example below).
Editing or deleting a rule
A custom rule cannot be edited or disabled. To change it:
- Delete the rule by clicking on the delete icon.
- Create a new rule with the right settings.