Skip to main content
Users
CloudPortalLogin
  • Powered byPowered by
Introduction to Sitecore Personalize
Managing accounts and system settings
Identifying guests
Introduction to experiments
Introduction to experiences
Decisioning
View dashboards
Developer Center
Connecting to an external system
Using client-side JavaScript
Using server-side JavaScript
Glossary
  • Sitecore Personalize
  • Introduction to experiences
  • Introduction to web experiences in Sitecore Personalize
  • Apply a condition to a web experience

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:

  1. On the experience builder, click the Filter tile.

  2. Click Add filter.

  3. In the Filter pane, click Add conditions.

  4. 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.

    Caution

    Not 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.

  5. Complete the required information for the selected condition.

    Select a condition to use and complete the required information
  6. 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.

    Two conditions combined using an Or operator to filter an audience
    Important

    Multiple conditions are designed to always evaluate to true or false. 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.

  7. 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.

    Adding conditions to a group to be evaluated as a single unit.
    Note

    It 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.

  8. 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.

  9. 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.

    Tip

    You can also apply a segment to filter the visitors who see the experience, based on segment membership.

Do you have some feedback for us?

If you have suggestions for improving this article,

Privacy policySitecore Trust CenterCopyright © 1999-2025 Sitecore