Apply a condition to a web experience
You can use conditions to filter the audience for an experience based on real-time visitor behavior. You can apply either out-of-the box conditions or custom conditions configured by a developer for your organization.
For example, you can add an out-of-the-box condition to filter visitors by geolocation. When you add the condition, you select a region and specify whether you want the experience to run for all visitors currently in or not in the region.
To add a condition:
-
On the experience builder, click the Filter tile.
-
Click Add filter.
-
In the Filter pane, click Add conditions.
-
In the right pane, click
next to the condition you want to apply. To locate a condition, do one of the following:
-
Switch between the Custom or Out of the box tabs to filter the conditions by type.
-
Use the Tags selector to narrow down conditions by the relevant condition tags, such as Geo and Date.
-
Enter a keyword in the search field to find conditions by name or description.
CautionNot all conditions are compatible with web experiences. This is because some conditions contain parameters that are only designed to work with certain types of experiences. If you want to apply an out-of-the-box condition, we recommend that you first check whether the condition is compatible with the web experience.
-
-
Complete the required information for the selected condition.
-
To apply additional conditions, click Add condition, select another condition, and provide the necessary details. You can add up to five conditions to an experiment or experience and use the And or Or operators to define how they are evaluated.
ImportantMultiple conditions are designed to always evaluate to
true
orfalse
. A single condition might still return a value. Before applying multiple conditions, make sure you understand the order of operations in conditions and follow the best practices for creating custom conditions to ensure robust and predictable logic. -
Optionally, to create a group of conditions, click Add group. Conditions within a group are evaluated first, and the result is then combined with the other conditions that create the audience. Groups can contain up to five conditions, but the total number of conditions, whether grouped or individual, must not exceed five.
Configure each condition and use the And or Or operators to define how they are evaluated.
NoteIt is also possible to move a condition into an existing group by clicking the up
or down
arrows on the right-hand side of the condition.
-
To reorder conditions, click the up
or down
arrow on the right-hand side of the condition to move them higher or lower in the list of conditions. Conditions are evaluated based on their arrangement and the order of operations.
-
When you have finished adding conditions, click Save. The Filter pane displays the applied conditions in an easily readable format.
When you start the experience, it runs only for visitors whose real-time behaviors match the defined conditions.
TipYou can also apply a segment to filter the visitors who see the experience, based on segment membership.