How Convert code snippet works: Order of Execution

Once you install the Convert code snippet, it would be useful to know in which order the various conditions are checked and visitors are bucketed or not into an experience.

The following diagram illustrates the order of operations for the Convert code snippet as it would execute during page load. 

  1. When you first visit a page, the Location Conditions are checked. These conditions are using the OR operator and are tested every time you visit the page.
  2. If you match the Location Conditions then you continue with the Audience Conditions. These are only tested once for a visitor.
  3. If you match the Audience Conditions then you move to traffic distribution. Convert decides here based on the traffic distribution if you will see the original or one of the variations.