Page interest criterion

The Page interest criteria is a segmentation criteria that enables you to create a segment

📖 Definition

The Page interest triggering criterion enables you to create a segment of visitors based on specific URLs viewed during a defined period of time.

⚙️ Configuration

To configure the Page interest criteria, you must:

  1. Define the period of time the URL(s) have been viewed. From the dropdown list, select ‘Past 2 weeks’, ‘Past month’, ‘Past year or ‘Last session’. 
  2. Specify the minimum number of times the URL(s) has been viewed.To do so, select or enter a number in the input field. 
  3. Declare one or several URLs by selecting the URL operator from the dropdown list and entering the corresponding string (an entire URL, a regex, a part of a URL and so on, depending on the selected operator).

To add several URLs, click Add condition:

  • When including 2 or more URLs (is, is exactly, contains, is regular expression, is saved Page), the SOME operator is applied, meaning that at least one condition needs to be met.
  • When excluding 2 or more URLs (is not, is not exactly, does not contain, is not regular expression, is not saved Page), the ALL operator is applied, meaning that all conditions need to be met.
  • When including at least one URL and excluding at least one URL, the ALL operator is applied, meaning that all conditions need to be met. 

For more information, refer to Configuring several conditions with ALL and SOME operators.

⭐ Good to know

The functioning is the same as in the Where section.

💡 Use case

Let’s say you want to display a coupon code on the Basket Page for visitors who seem interested in recipes; this would trigger only for visitors who have seen 5 pages containing /recipe/ in the URL during their session(s) for the past month. To do so:

  1. Choose the Page interest segment criterion in the Who section of the targeting step of your campaign.
  2. From the first dropdown list, select Past month.
  3. In the input field, enter the number of times the URL has been seen (in this case, enter 5).
  4. Select contains > /recipe/
  5. In the Where section, select the is operator and enter the URL corresponding to the Basket Page.

🔎 How Does It Work?

Within the tag, we created an object called ABTastyData, that contains information about your visitors’ journey. Inside this object, we store visited pages’ data in a location called VisitedPages. This is performed every time a user loads a new page. The following information is stored:

  • Current page URL
  • Current page title
  • Current session number (from the “ns” variable of the ABTasty cookie)
  • Current timestamp

For the content interest calculation, our targeting service is using this URL information stored in our global object to perform the page interest targeting.


Need additional information?

Submit your request at

Always happy to help! 


Was this article helpful?