Understanding the order of operations in conditions
In XM Cloud Pages Personalize, the order and hierarchy of the conditions that build an audience determine the way the audience is calculated. The following steps describe the personalization journey:
-
When the outcome of a condition (or group of conditions) is evaluated to
true
for a given site visitor, the evaluation stops and the visitor is assigned to the relevant audience. -
Personalized content is displayed according to the audience the visitor is assigned to.
-
At every page visit, the audience is reevaluated. For example, if after browsing your site, a page views condition changes and evaluates to
true
, the visitor might now be assigned to a different audience.
Audience builder operations are evaluated in the order in which they appear, while applying the following logic:
-
Group - conditions within the group are evaluated first according to their order.
-
And - conditions that are preceded by the
AND
operator are evaluated next. -
Or - conditions that are preceded by the
OR
operator are evaluated next.
After adding and defining conditions, use the Preview option to understand how the audience will be built.