The personalization conditions

Version:

This topic lists the personalization conditions that are available in Sitecore Experience Platform (XP) and in Sitecore Experience Manager (XM).

In a fully configured Sitecore XP installation, you can use all the personalization conditions in the Rule Set Editor and you can implement historic and in-session personalization.

However, in a Sitecore XM or XP installation, the personalization conditions that you can use are different depending on how you installed Sitecore:

  • If you used the Sitecore XP topology packages (XP Scaled or XP Single) to install Sitecore XP and then configured it to run in CMS-only mode, some of the personalization conditions are available and you can implement in-session personalization.
  • If you used the Sitecore XM Scaled topology packages to install Sitecore XM, a smaller set of personalization conditions are available as part of in-session personalization.

In the Rule Set Editor, the personalization conditions are organized by category.

You can use all of the rules in the following tables in XP. The conditions that you can use in XM are marked as compatible (Yes) or not supported (No).

Predefined Rules

ConditionXM

Installed with the Sitecore XM topology packages
XP

Sitecore XP configured to run in CMS-only mode
XP
Where predefined rule is trueYesYesYes

Campaign

ConditionXM

Installed with the Sitecore XM topology packages
XP

Sitecore XP configured to run in CMS-only mode
XP
When current interaction's campaign's custom facet field is classified under the specified custom groupNoYes - only supports in-session personalizationYes

Channel

ConditionXM

Installed with the Sitecore XM topology packages
XP

Sitecore XP configured to run in CMS-only mode
XP
When the current interaction is on the specified channelNoYesYes
When the current interaction is on a channel in the specified channel groupNoYesYes
When the current interaction is on a channel in the specified channel typeNoYesYes

Date

ConditionXM

Installed with the Sitecore XM topology packages
XP

Sitecore XP configured to run in CMS-only mode
XP
When the date has passedYesYesYes
When the current day of the month compares to numberYesYesYes
When the current day is day of the weekYesYesYes
When the current month is monthYesYesYes

Device

ConditionXM

Installed with the Sitecore XM topology packages
XP

Sitecore XP configured to run in CMS-only mode
XP
Where the device browser compares to specific valueYesYesYes
Where browser supports HTML 5 audioYesYesYes
Where browser supports HTML 5 videoYesYesYes
Where browser supports JavaScriptYesYesYes
Where the device is botYesYesYes
Where the device hardware model compares to specific valueYesYesYes
Where the device property compares to specific valueYesYesYes
Where the device operating system compares to specific valueYesYesYes
Where the device operating system vendor compares to specific valueYesYesYes
Where the device supports touch screenYesYesYes
Where device type is one of the listYesYesYes
Where the device vendor compares to specific valueYesYesYes
Where the hardware screen height compares to numberYesYesYes
Where the hardware screen width compares to numberYesYesYes

Fields

ConditionXM

Installed with the Sitecore XM topology packages
XP

Sitecore XP configured to run in CMS-only mode
XP
Where the specific field compares to specific valueYesYesYes
Where the specific field is emptyYesYesYes
Where the item contains a field type that compares to specificYesYesYes

IP Geolocation

ConditionXM

Installed with the Sitecore XM topology packages
XP

Sitecore XP configured to run in CMS-only mode
XP
Where the area code compares to specific valueYesYesYes
Where the business name compares to specific valueYesYesYes
Where the city compares to specific cityYesYesYes
Where the country compares to specific countriesYesYesYes
Where the DNS address compares to specific valueYesYesYes
Where the IP address compares to specific valueYesYesYes
Where the ISP name compares to specific valueYesYesYes
Where the latitude compares to specific valueYesYesYes
Where the longitude compares to specific valueYesYesYes
Where the metro code compares to specific valueYesYesYes
Where the postal code compares to specific valueYesYesYes
Where the region compares to specific valueYesYesYes
Note

The GeoIP feature is disabled in XM by default and can be enabled in configuration.

Item hierarchy

ConditionXM

Installed with the Sitecore XM topology packages
XP

Sitecore XP configured to run in CMS-only mode
XP
Where the item is the specific item or one of its ancestorsYesYesYes
Where the item is the specific item or one of its descendantsYesYesYes
Where the level of the item compares to numberYesYesYes
Where the item path compares to pathYesYesYes
Where the parent name compares to valueYesYesYes
Where the parent template is specific templateYesYesYes

Item information

ConditionXM

Installed with the Sitecore XM topology packages
XP

Sitecore XP configured to run in CMS-only mode
XP
Where the item ID compares to valueYesYesYes
Where the item name compares to valueYesYesYes
Where the item template is specific templateYesYesYes

Item version

ConditionXM

Installed with the Sitecore XM topology packages
XP

Sitecore XP configured to run in CMS-only mode
XP
Where the item language compares to valueYesYesYes

Marketing Automation

ConditionXM

Installed with the Sitecore XM topology packages
XP

Sitecore XP configured to run in CMS-only mode
XP
Where the contact has previously been in the specific Automation campaign and exited between start date and end dateNoNoYes
Where the contact is currently in the specific Automation campaignNoNoYes
Where the contact is currently enrolled and waiting in the specific activity of the specific Automation campaignNoNoYes

Security

ConditionXM

Installed with the Sitecore XM topology packages
XP

Sitecore XP configured to run in CMS-only mode
XP
Where the current user is anonymousYesYesYes
Where the current user domain name compares to valueYesYesYes
Where the user profile includes a valid email addressYesYesYes
Where the current user name compares to valueYesYesYes
Where the specific field in the user profile compares to valueYesYesYes
Where the specific field in the user profile is not emptyYesYesYes
Where the value in the specific numeric field in the user profile compares to numberYesYesYes
Where the current user is a member of the specific roleYesYesYes

Sitecore query

ConditionXM

Installed with the Sitecore XM topology packages
XP

Sitecore XP configured to run in CMS-only mode
XP
Where the result of the expression query existsYesYesYes

System

ConditionXM

Installed with the Sitecore XM topology packages
XP

Sitecore XP configured to run in CMS-only mode
XP
Where calling the specific script returns trueYesYesYes
Where a condition in the specific rule is trueYesYesYes
When the Content Search feature is enabledYesYesYes
Where the current domain name compares to valueYesYesYes
When the Item Buckets feature is enabledYesYesYes
Where true (actions always execute)YesYesYes

Tracking

ConditionXM

Installed with the Sitecore XM topology packages
XP

Sitecore XP configured to run in CMS-only mode
XP
Tracking is enabledNoYesYes

Venue

ConditionXM

Installed with the Sitecore XM topology packages
XP

Sitecore XP configured to run in CMS-only mode
XP
When the current interaction is at the specified venueNoYesYes
When the current interaction is at a venue in the specified venue groupNoYesYes
When the current interaction is at a venue in the specified venue typeNoYesYes

Visit

Note

Conditions in the Visit group are based on data from both the current and past visits. The default maximum time span covered by the contact profile is 30 days, For conditions that take into account only the historical behavior of the visitor, see the Visitor group.

Past visits removal using the XConnect API does not affect conditions as condition-related data is stored on the Contact facet.

ConditionXM

Installed with the Sitecore XM topology packages
XP

Sitecore XP configured to run in CMS-only mode
XP
Where at least one of the campaigns in list was triggered during the current visitNoYesYes
Where the specific campaign was triggered during a past or current interaction and when the number of elapsed days compares to number and when the past number of interactions compares to numberNoNoYes
Where a past or current interaction is on the specific Channel and when the number of elapsed days compares to number and when the past number of interactions compares to numberNoNoYes
Where the number of engagement value points compares to numberNoYesYes
Where the specific goal was triggered during the current visitNoYesYes
Where the specific goal was triggered during a past or current interaction and when the number of elapsed days compares to number and when the past number of interactions compares to numberNoNoYes
Where the specific goal was triggered during a past or current interaction and when the number of elapsed days compares to number and when the past number of interactions compares to number and the custom data compares to valueNoNoYes
Where the current visit matches the specific pattern card in the specific profileNoYesYes
Where the specific outcome was registered during a past or current interaction and when the number of elapsed days compares to number and when the past number of interactions compares to numberNoNoYes
Where the specific page event was triggered during a past or current interaction and when the number of elapsed days compares to number and when the past number of interactions compares to numberNoNoYes
Where the specific page event was triggered during a past or current interaction and when the number of elapsed days compares to number and when the past number of interactions compares to number and the custom data compares to valueNoNoYes
Where the page index compares to numberNoYesYes
Where the specific page has been visited during the current visitNoYesYes
Where the value of the specific profile key in the interaction profile compares to specific valueNoYesYes
Where the search keywords compares to specific valueNoYesYes
Where a past or current interaction is on the specific venue and when the number of elapsed days compares to number and when the past number of interactions compares to numberNoNoYes
Where the Visit started at one of pages in listNoYesYes
Where the start date compares to dateNoYesYes
Where the referrer compares to specific valueNoYesYes

Visitor

Note

Conditions in the Visitor group are based on historical data accumulated in the contact's profile, which can include data from multiple visits. For conditions that look at the visitor's behavior in the current visit also, see the Visit group.

Past visit removal using the XConnect API does not affect conditions as condition-related data is stored on the Contact facet.

ConditionXM

Installed with the Sitecore XM topology packages
XP

Sitecore XP configured to run in CMS-only mode
XP
Where the number of the contact's current engagement value points compares to numberNoNoYes
When the current contact is in the specified contact listNoNoYes
Where the visit no. compares to numberNoNoYes
Where the specific tag of the visitor is not emptyNoNoYes
Where the current contact matches at least one of the profile pattern card in listNoNoYes
Where the value of the specific profile key in the contact behavior profile compares to specific valueNoNoYes
Where the value in the specific numeric field in the user profile compares to numberNoNoYes
Where the visitor identification compares to specific valueNoNoYes
Where the specific tag of the visitor compares to valueNoNoYes

xDB

ConditionXM

Installed with the Sitecore XM topology packages
XP

Sitecore XP configured to run in CMS-only mode
XP
xDB is enabledNoYesYes
If you have suggestions for improving this article, let us know!