Skip to main content

Supported conditions

This section documents the Sitecore personalization conditions that Uniform Optimize supports out-of-the-box.

note

Additional conditions, including custom conditions, can be supported using the Uniform Optimize API. For details, see supporting custom conditions.

note

For information on how to identify personalization on your site that uses unsupported conditions, see personalization audit.

Sitecore conditions#

The following conditions are standard conditions included with Sitecore XP.

if you are running Sitecore XM

A number of conditions are not available to you if you installed Sitecore XM. This is indicated below.

Technically, since neither tracking nor personalization runs on the Sitecore content delivery (CD) instance when you use Uniform, personalization conditions that involve xDB data can run on a Sitecore XM instance. The problem, however, is that you have no easy way to configure the conditions. Therefore, we just say that these conditions are not supported for Sitecore XM.

Date/time#

  • Sitecore.Rules.Conditions.DateTimeConditions.CurrentMonthCondition
  • Sitecore.ContentTesting.Rules.Conditions.DayOfWeekCondition
  • Sitecore.Rules.Conditions.DateTimeConditions.DayOfWeekCondition
  • Sitecore.Rules.Conditions.DateTimeConditions.IsDayOfMonthCondition
  • Sitecore.Rules.Conditions.DateTimeConditions.NowCondition

Geo#

  • Sitecore.Analytics.Rules.Conditions.CountryCondition
  • Sitecore.ContentTesting.Rules.Conditions.CountryCondition

Predefined#

  • Sitecore.Rules.Conditions.WhenRule

Visit#

note

The conditions in this section are only available when Sitecore XP is installed.

  • Sitecore.Analytics.Rules.Conditions.CampaignWasTriggeredDuringPastOrCurrentInteractionCondition
  • Sitecore.Analytics.Rules.Conditions.GoalWasTriggeredDuringPastOrCurrentInteractionCondition
  • Sitecore.Analytics.Rules.Conditions.HasCampaignCondition
  • Sitecore.ContentTesting.Rules.Conditions.HasCampaignCondition
  • Sitecore.Analytics.Rules.Conditions.HasGoalCondition
  • Sitecore.Analytics.Rules.Conditions.HasPatternCondition
  • Sitecore.Analytics.Rules.Conditions.ProfileCondition

Visitor#

  • Sitecore.Analytics.Rules.Conditions.ContactVisitIndexCondition

Logical#

  • Sitecore.Rules.Conditions.AndCondition
  • Sitecore.Rules.Conditions.NotCondition
  • Sitecore.Rules.Conditions.OrCondition
  • Sitecore.Rules.Conditions.TrueCondition

Uniform conditions#

The following conditions are custom conditions included with Uniform Optimize.

Device#

  • Uniform.Sitecore.Rules.Conditions.Device.BrowserCondition
  • Uniform.Sitecore.Rules.Conditions.Device.DeviceBrandCondition
  • Uniform.Sitecore.Rules.Conditions.Device.DeviceIsDesktopCondition
  • Uniform.Sitecore.Rules.Conditions.Device.DeviceIsMobileCondition
  • Uniform.Sitecore.Rules.Conditions.Device.DeviceIsTabletCondition
  • Uniform.Sitecore.Rules.Conditions.Device.DeviceOperatingSystemCondition

Geo#

  • Uniform.Sitecore.Rules.Conditions.Geo.CityCondition
  • Uniform.Sitecore.Rules.Conditions.Geo.CountryCodeCondition
  • Uniform.Sitecore.Rules.Conditions.Geo.GeoKeyValueCondition
  • Uniform.Sitecore.Rules.Conditions.Geo.RegionCodeCondition
  • Uniform.Sitecore.Rules.Conditions.Geo.ZipCodeCondition

Request#

  • Uniform.Sitecore.Rules.Conditions.Request.CookieCondition
  • Uniform.Sitecore.Rules.Conditions.Request.HasCookieCondition
  • Uniform.Sitecore.Rules.Conditions.Request.HttpHeaderCondition
  • Uniform.Sitecore.Rules.Conditions.Request.HasHttpHeaderCondition
  • Uniform.Sitecore.Rules.Conditions.Request.QueryStringCondition
  • Uniform.Sitecore.Rules.Conditions.Request.HasQueryStringCondition

Visit#

note

The conditions in this section are only available when Sitecore XP is installed.

  • Uniform.Sitecore.Rules.Conditions.Visit.GoalWasTriggeredCondition