Defining Triggers

Triggers tell SiteSpect when to make a change: to display a Variation, to count a Metric, or to show a Site Variation, for example. They describe specific conditions such as a URL, a geographical location, or a previously defined Page Category. You can specify Triggers while creating Variations, FactorsMetrics, and Global Variations.

Note: The following steps explain how to create a Trigger as part of a Variation in an A/B Campaign. The steps are similar for other SiteSpect components.

To specify a Trigger for a Variation:

  1. Begin creating the Campaign as you normally would: Select NewA/B Campaign, and complete the General section of the page.
  2. Open the Variations section of the page and select Find & Replace so that you can edit the Variation Group on this page instead of within the Visual Editor.Defining Triggers - Variations
  3. Open the Variations section. The When to Change (Triggers) area is visible at the top.Defining Triggers - Variation Group 1Click the Type drop-down to view the available Triggers. Not all Triggers are available for every component.

    Defining Triggers - EventTrack
SiteSpect allows a maximum of fifteen Triggers. If you have selected too many, SiteSpect warns you.

New fields are added to the Triggers section of the page, based on the Triggers you select. Click one of the links above to learn how to complete the fields for each Trigger type.

Combining Triggers

Two logical operators allow you to combine Triggers: AND and OR. When you choose AND, both conditions compared by the operator must be true. When you choose OR, either one can be true. In addition, when you combine multiple ANDs and ORs, the ANDs are evaluated before the ORs.

Triggers and Regex

In some Trigger fields, SiteSpect uses specific patterns called regular expressions. Regular expressions are special text strings that describe search patterns. We document some of the most commonly used features of regular expressions here, but for more complete information, check out one of the widely available references on regex.

Trigger Types Available

The Triggers available for A/B Campaigns depend on what you select in the Type drop-down when defining the Campaign. In addition, some Triggers don't work for certain SiteSpect components.