Guide: Trigger Criteria

To create a new trigger, refer to this article Creating a trigger

In this guide, you’ll find details on how to properly use the trigger criteria and how they work with your campaigns. The criteria are shown by trigger criteria type in dedicated categories.

On the platform, from the trigger builder left-side menu, you can use the carets to open or close the trigger category or use the search bar on the top to easily find the criteria you need.


Triggering criteria configuration


Unique visitors

Source & Pages





Configuring several conditions with ALL and SOME operators

All and Some are operators used between several conditions to build a segment, a trigger, to define the target pages, or to configure the QA of your campaign.


📖 Definition

All and Some operators enable you to combine several conditions within a set-up in the targeting step such as segmentation or triggering criteria. They appear in a drop-down list when two or more conditions are added. In most cases, both All and Some operators are available.






The setup matches at least one of the conditions.

In the Geolocation criteria: target visitors located either in France OR in the United States.


The setup matches all the conditions, without exception.

In the Content interest criteria: target visitors interested in BOTH skirt and dress.


🤖 Configuration

Various use cases to combine conditions with All and Some operators


When the only available operator is Some 

For consistency purposes, come criteria cannot accept all operators.

For example, in the Geolocation criteria, you can add several conditions, but the default operator is some. Indeed, visitors cannot be in two different countries at the same time, during their session. If you select France as a first condition and the United States as a second condition, you will target visitors located either in France or in the United States.


When the only available operator is All 

For example, in the Last purchase segmentation criteria, you can refine the criteria by adding advanced criteria such as payment or delivery method. If you want to target visitors who made their last purchase less than 30 days ago and used PayPal as the payment method and the Welcomeback coupon code, only visitors who made a purchase within the last 30 days and both used the coupon code and the payment method mentioned above will be targeted.


Managing 2 or more exclusions: All only

When we use only exclusions, the drop-down displays all by default. 

For instance, if you want to target pages that contain neither the ”blue” string nor the “red” string, your 2 conditions will have to be met in order to trigger the campaign. Using some operator between those conditions would not make sense.


Managing a combination of inclusions and exclusions

This last use case combines inclusions and exclusions. 

Imagine you want to set up this targeting on your website: the campaign should appear on every product page, except pages from the “luxury” category.

Your setup will be the following: 

  • Start by including your whole website by including URLs containing the “/product/” string
  • Then, exclude URLs containing the “/luxury/” string.

To trigger the campaign, these are the steps the tag will follow:

  • First, the AB Tasty tag will check if the current page contains the word “luxury”
  • If it does, the tag won’t trigger the campaign.
  • If it doesn’t, the tag will check if the URL contains “/product/”
  • If it does, the tag will trigger the campaign
  • If it doesn’t, the tag won’t trigger the campaign.


Good to know 💡

In all cases, all exclusions must be entirely respected. Regarding inclusions, this depends on your configuration (if possible): respecting at least one or absolutely all of the conditions.


Triggers execution in the tag

Some criteria can’t technically be checked at the load of the page when the tag tries to check the targeting conditions and execute the campaigns in case of conditions are met.
Please go back to the targeting guide, section Defining targeting conditions” to get more information about this option. 

Was this article helpful?