Specifying variables for conditions
The following conditions are available when creating audiences for page variants in XM Cloud Pages. After you add a condition to an audience, specify its details.
The table lists the conditions available in XM Cloud Pages Personalize. However, if your organization has an XM Cloud + Personalize license, there might be additional custom conditions created in Sitecore Personalize and available for use in Pages for personalization.
The Edge compatibility column identifies the conditions that can be executed at the edge. This edge capability reduces latency and bandwidth usage by processing data closer to its source using local servers, rather than relying on centralized cloud servers. This enables you to deliver precise, location-based personalized content from the moment a user first interacts with your site.
The edge-compatible conditions will only run at the edge in JSS Next.js applications, version 21.6.0 or later, hosted on XM Cloud.
Using both an edge-compatible and a non-edge compatible condition together will stop them from running at the edge.
Template name |
Tag |
Edge compatibility |
Example usage |
Input options - variables are in italics |
Comments |
---|---|---|---|---|---|
Time of day |
TIME |
|
Your campaign runs only before or after a specific time. |
The visit is / is not before / after time, based on your organization's time zone. |
Time zone calculations are based on your organization's region*. |
Month |
DATE |
|
Your campaign runs on a specific month. |
The visit is / is not in month(s), based on your organization's time zone. |
Time zone calculations are based on your organization's region*. You can select more than one month. |
Day of the week |
DATE |
|
Your campaign runs only on specific days of the week (for example, weekend days). |
The visit is / is not on day(s) of the week, based on your organization's time zone. |
Time zone calculations are based on your organization's region*. You can select more than one day of the week. |
Date and time |
DATE TIME |
|
Your campaign runs only before or after a specific date and time. |
The visit is / is not before / after date and time, based on your organization's time zone. |
Time zone calculations are based on your organization's region*. |
Visit day of the month |
DATE |
|
Your campaign runs on the last 3 days of the month. |
The visit is / is not on a day of the month that compares tonumber between 1 and 31 based on your organization's time zone. |
Time zone calculations are based on your organization's region*. |
Device |
DEVICE |
|
Your campaign displays only on a specific device type (for example, show a link to download your app only on a mobile device). |
The visitor is / is not using a device type(s) device during the current visit. |
Device types include: mobile, desktop, tablet, other. You can select more than one device type. |
Operating system |
DEVICE |
|
Your campaign displays only on a specific operating system (for example, show a link to your app on Google Play only on Android phones). |
The visitor is / is not using operating system(s) during the current visit. |
Operating systems include: macOS, Windows, Android, iOS, Linux, other. You can select more than one operating system. If the operating system cannot be detected, the condition will not be fulfilled, even if Other is selected. |
Country |
GEO |
|
Your localized campaign only runs in a specific country (for example, Spain). |
The visitor is / is not in country during the current visit. |
XM Cloud Pages Personalize captures geolocation based on the user's IP address. The geolocation data is collected once per active session as the user interacts with your app. It's collected from the first event in the current session and is not updated again within the same session. You can select more than one country. |
Region |
GEO |
|
Your localized campaign only runs in a specific region (for example, Middle East). |
The visitor is / is not in region during the current visit. |
XM Cloud Pages Personalize captures geolocation based on the user's IP address. The geolocation data is collected once per active session as the user interacts with your app. It's collected from the first event in the current session and is not updated again within the same session. Regions include: Africa, Asia, Europe, North America, Oceania, South America and other. You can select more than one region. |
Country Region |
GEO |
|
Your localized campaign only runs in a specific region of a country (for example, Florida) |
The visitor is in country where region is / is not region(s) during the current visit. |
XM Cloud Pages Personalize captures geolocation based on the user's IP address. The geolocation data is collected once per active session as the user interacts with your app. It's collected from the first event in the current session and is not updated again within the same session. Currently, a country region refers to any state within the US, such as Florida, California, or Colorado. You can select more than one state. |
Page view |
VISIT |
|
Your recommendations campaign only runs if the visitor viewed the product search page. |
The visitor has / has not visited the page name page during the current visit. |
page name is a free text field that can include alphabet characters, numbers, and special characters, and that must match a page name from the site tree, for example Home, About. The page name is case-sensitive. You can specify multiple pages, separated by a comma. |
First page |
VISIT |
|
Your campaign only runs if the visitor started the website visit on a specific page. |
The visit has / has not started on a page that compares topage name during the current visit. |
page name is a free text field that can include alphabet characters, numbers, and special characters, and that must match a page name from the site tree for example Home, About. The page name is case-sensitive. Only one page can be specified. |
Number of page views |
VISIT |
|
Your limited time deal campaign runs only if the visitor visited the product page 3 times over the past week. |
The visitor has / has not visited the page name within the past number between 0 and 30 days and the total number of page views compares tonumber larger than 0. |
page name is a free text field that can include alphabet characters, numbers, and special characters, and that must match a page name from the site tree, for example Home, About. Only one page can be specified. |
First referrer |
USER INTERACTION |
|
Your campaign only runs if the first referrer is, for example, Facebook. |
The visitor comes from a URL that compares tostring in the current visit. |
string is a free text field that can include alphabet characters, numbers, and special characters, and that must match at least part of the name of the first referrer, for example facebook or faceb. |
UTM value |
USER INTERACTION |
|
Your campaign only runs if the UTM medium is, for example, paid. |
The visit includes a UTM type which compares toUTM value. |
type can be one of the following: campaign, source, medium, or content. UTM value is a free text field that can include alphabet characters, numbers, and special characters, and that must match the value of this attribute in the URL. For example, for a URL that has utm_medium= social, you can enter social. |
New or returning visitor |
USER INTERACTION |
|
Your loyalty campaign only runs if the visitor has returned within the past 30 days. |
The visitor is type to your site. |
type can be new or returning. |
Point of sale |
POINT OF SALE |
|
Your campaign only runs for a specific point of sale or website. |
The visit is / is not to point of sale. |
point of sale is a drop-down menu listing all site identifiers from your organization |
* Organization regions are based on the following cities' time zones:
-
West Europe: Dublin
-
Australia: Sydney
-
Japan East: Tokyo
-
East US: New York
-
West US: Los Angeles