Combining conditions in the Page Targeting section allows you to define when your content will be displayed based on multiple criteria. You can configure your settings so that content is displayed when ALL conditions match, or when ANY condition matches. Below are examples to illustrate this functionality:
Example 1: Targeting with ALL Conditions
The first targeting definition ensures that the product tour will display only if both of the following conditions are met:
The page URL contains "domain.com".
The page contains an element with the selector
#element-1
.
Example 2: Targeting with ANY Conditions
The second example targets the tour to two different subdomains. The tour will be available on either subdomain if:
The page matches any one of the specified subdomain criteria.
Conditional Grouping
Combining ALL and ANY conditions within the Page Targeting section provides even greater flexibility. This allows your content to display when specific criteria in both groups are met. Here's an example:
Example: Combining ALL and ANY Conditions
This targeting definition ensures that the product tour will display when:
ALL of the following conditions are met:
The operating system is Windows.
The page contains an element with the selector
#element-1
.
ANY of the following conditions are met:
The page is on one of two different subdomains.
By using these features, you can create highly tailored targeting rules for your content.