๐Ÿ‘‰ 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

Alland Some operators enable you to combine several conditions within a set-up in the targeting step such as a segmentation or a triggering criterion. 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 set-up matches at least one of the conditions.

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


The set-up matches all the conditions, without exception.

In the Content interest criterion: 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 the all operator.
For example, in the Geolocation criterion, 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 criterion, 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 dropdown displays all by default. 

For instance, if you want to target pages which contain neither the โ€blueโ€ string nor the โ€œredโ€ string, your 2 conditions will have to be met in order 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 set-up this targeting on your website: the campaign should appear on every product page except pages from the โ€œluxuryโ€ category.
Your set-up 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.


Need additional information?

Submit your request at product.feedback@abtasty.com

Always happy to help! 



Was this article helpful?