Guide: Segments Criteria

In this guide, you will find details on every segment criteria available inside AB Tasty, for you to properly configure your audience. Those are available inside the targeting section of every campaign creation flow of your account, for you to target the right audience. 

The criteria are organized by type of segment criteria in dedicated categories. You can use the arrows to open or close these categories in the segment builder or use the search on the top to easily find the criteria you need. To start configuring a segment, you can drag and drop a criteria inside the segment builder’ middle column. 

This article will allow you to discover every criteria, by digging deep into each criteria's specificities and configuration possibilities. Let’s start! 👇


Segmentation criteria configuration


User Preferences





External data


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.



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.






Only one (or some) condition needs to be detected to trigger the targeting (match some of the conditions declared)

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


To trigger targeting (match all conditions declared), all conditions must be met without any exceptions.

In the Purchase Frequency criteria: target visitors who bought BOTH 5 times and with the Paypal payment option.



Various use cases to combine conditions with All and Some operators.


When the Only Available Operator Is Some

For consistency purposes, some criteria cannot accept the all operator.

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. Suppose 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. In that case, only visitors who purchased within the last 30 days and both used the coupon code and the payment method mentioned above will be targeted.


Managing Two or More Exclusions: All Only

When we use only exclusions, the dropdown displays all by default. 

For instance, if you want to target pages that contain neither the blue character string nor the red character string, your two conditions will have to be met to trigger the campaign. Using the 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/ character 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 will not trigger the campaign.
  • If it does not, the tag will check if the URL contains the /product/ character string.
  • If it does, the tag will trigger the campaign.
  • If it does not, the tag will not 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.

How the Data Collection Works

AB Tasty starts collecting your visitor's browsing data (sessions, page views, behavior) as soon as the generic tag is integrated into your website.

Each visitor is assigned an AB Tasty cookie with a unique visitor ID when they go to your website and accept cookies. This cookie is valid for 13 months unless the visitor uses incognito browsing or clears their cookies. We store the navigation data and specific custom data generated by the tag (for instance the visitor attributes) inside the ABTasty cookie and through the tag mediation. 


Was this article helpful?