👉 Defining Target Pages (Where section)

The Where section is part of the targeting step, along with the choice of the Visitor segment (Who section) and the triggering conditions (How section). 

 

📖 Definition

The Target Pages section enables you to configure the URL(s) on which you want to display your test or personalization campaign.  
For multipage tests and personalizations, you must configure this section for each Page you have created.
For more information on these campaigns, please refer to Configuring a Multipage Test and Configuring a Multipage Personalization

 

⚙️ Configuration

To target your campaign, you can either use a saved Page, configure URL(s) using the URL operators, target all pages, targeting on an event, use the target by ID/Class/Element option, use the target by code option, use the targeting verification option.

 

Using saved Pages

You can apply a previously Saved Page in the settings of your current campaign. The list of all saved Pages is available directly from the drop-down list. To do so, in the first dropdown, select matches saved Page (to include) or does not match saved Page (to exclude), and select the saved Page you want to target (or exclude from the targeting) in the second drop-down list. You can target one or several saved Pages.
For example, if you want to target both your product pages and Homepage (that you have previously created and saved), select:

  • is saved Page > Product pages
  • is saved Page > Homepage

If you want to target all your clothes pages except the ones from a specific brand (that you have previously created and saved), you need to mix an inclusion and an exclusion as follows:

  • is saved Page > “Product pages - Clothes”
  • is not saved Page > “Product pages - Branded clothes”

You can also configure one or several URL(s). In the first dropdown, select the URL operator you want to use and enter the corresponding URL you want to target.
To find out how the URL operators work and their functional rules, refer to Using URL operators.

Using a mix of saved pages and URL(s)

You can target both saved pages and URL(s). 
For example, if you want to target all the pages of your website except one specific product page: 

  1. Select matches saved page > Product pages
  2. Click Add condition and select is not > www.mywebsite.com/product/345654

Good to know 💡

You can combine inclusion(s) of saved pages with exclusion(s) of saved pages, but you will have to use at least 1 inclusion in your targeting (it can be a saved page or a URL rule, using only exclusions won’t work. 
In this case, to be accepted in the targeting, a website’s URL has to match:

  • All the exclusion rules (pages or single URL(s) rules)
  • Some (Almost one) of the inclusion rules (pages or single URL(s) rules)

 

Targeting all pages

To target all the pages of your website, select Target all URLs from the first dropdown list. Using this option does not allow you to add other rules such as:

  • specific exclusions on saved Pages or URL(s) (e.g.: my whole website except the basket page)
  • the id/class/element option
  • the code option

Heads up

This option triggers your campaign on all pages where your generic AB Tasty tag is implemented; as long as the modifications made in the editor are compatible with the layout of the page.

 

Targeting on an event

To target all the pages of your website, check the Target by event box. Using this option does not allow you to add other rules such as:

  • specific exclusions on saved Pages or URL(s) (e.g.: my whole website except the basket page)
  • the id/class/element option
  • the code option

This option triggers your campaign according to a specific event on your website (e.g.: when the visitor clicks on a button). 
For more information on this option, refer to Condition a test on an event.

 

Using the ID/Class/element-based option

If the URLs of your website don’t respect specific rules such as having a common string or matching a specific pattern, we recommend basing your targeting on an element which is common to the pages you need to target.

This option is compatible with other options of the section, for the Target all URLs option.
For more information on this option, refer to ID/Class/Element option.

 

Using the code-based option

This option enables you to insert JavaScript code to trigger a campaign depending on the presence of a specific JS instruction.
This option is compatible with other options of the section, except for the Target all URLs option.
For more information on this option, refer to Using the code-based option.

 

Using the targeting verification option

This option enables you choose how the targeting verification will be performed.  In some cases, elements do not appear on your pages once the campaign is launched and you must apply the verification at regular intervals until the conditions are met.
 For more information, refer to Defining targeting verification.

 

💡 Use cases

Targeting a set of pages

To target a set of the same types of pages (all product pages or category pages of your website, for instance), you can choose from the two configurations below:

URL operator

Contains

Full URL

http://mydomain.com/category/

Result

The changes are applied to all pages for which the AB Tasty platform has identified a common section of URL.
You must make sure non-desired pages aren't included by mistake because they contain the same section of URL: as a safety precaution, you may use a regular expression.      

Example of a URL

You will target the http://mydomain.com/category/page1 page, but also http://mydomain.com/category/page1/article.html.

 

Good to know 💡

If some of your pages are secure and use the HTTPS protocol, you will need to configure targeting using the Contains option and www.mydomain.com/category as the full URL. 

 

URL operator

matches Regular expression

Full URL

http://www.example.com/products/(.*)--([0-9]{5})

(For example if your URLs match the following format: http://www.example.com/products/product-name--12345, where 12345 coincides with a 5-digit product ID)

Result

A regular expression enables you to use a strict writing rule to define the pages to be targeted. This guarantees that you will include only the pages that need to be, particularly if your pages share a structure and include a set of digits and letters.

Refer to the http://rubular.com/ page to test your regular expressions or contact your CSM if you need help writing them.    

Example of a URL

You will target the http://www.example.com/products/shoes-children--96753.html

or http://www.example.com/products/garden-furniture--13082 pages.

 

Targeting all pages

To target all the pages of your website, use one of the two configurations below:

URL operator

Contains

Full URL

http://mydomain.com

Result

The changes will be applied to all the pages of the website on which the tag is implemented.    

Example of a URL

You will target the http://mydomain.com page, as well as http://www.mydomain.com/category/page1/article.html and even http://www.mydomain.com/cart.

Or
Select the Target all pages option.

 

Need additional information?

Submit your request at product.feedback@abtasty.com

Always happy to help! 

ALY-PROF.png

Was this article helpful?

/