👉 Using URL operators

📖 Definition

Configuring the target pages of your website means specifying the page(s) for which the changes made via the variation editor will be seen by your visitors. 
In order to do this, you need to specify the URL of the page(s) to be modified (targeted by the campaign) using different operators. You can configure one or several URL(s).

Former operator New operator
  Include URL ignoring parameters is
Corresponds exactly is exactly
Contains contains
Regular expression is regular expression
  Exclude URL ignoring parameters is not
Corresponds exactly is not exactly
Contains   does not contain
Regular expression is not regular expression

 

⚙️ Configuration

By default, a URL is already defined for your campaign and coincides with the URL configured during step 1 Main information based on the following template: is > URL configured in step 1.
To configure the page URL(s), you can choose from the following operators:

Operator Functional: accepts...
is

Includes all URLs matching the string, even if they include parameters. 
⚠️ With this operator, the page is targeted no matter which parameters are included in the URL. Therefore, you cannot write any particular parameter in this field.
Example: https://mydomain.com/cart

is exactly

Includes the URL matching the exact string. Parameters that are not mentioned in the string are not taken into account. 
💡 This field accepts parameters as an option.
Example: https://mydomain.com/cart

contains Includes all URLs containing the string. Parameters following the string will also be taken into account.
Example: /product/
is not

Excludes all URLs matching the string, even if they include parameters. 
⚠️ This field doesn’t accept parameters.
Example: https://mydomain.com/cart

is not exactly

Excludes the URL matching the exact string.
💡 This field accepts parameters as an option.
Example: https://mydomain.com/cart

does not  contain

Excludes all URLs containing the string. Parameters following the string will also be taken into account.
Example: /product/

is not regular expression

Excludes all URLs matching the regex. You don’t need to escape special characters of your regular expression.
Example: https://www.example.com
/products/(.*)--([0-9]{5})

 

Inclusion(s) only

If you include one or several specific URL(s), all the other URLs will automatically be excluded from the targeting. At least one of them has to match.

Combination of inclusions and exclusions 

You can combine inclusive operator(s) (is, is exactly, contains, is regular expression) with exclusive operator(s) (is not, is not exactly, does not contain, is not regular expression). 
In this case, to be accepted in the targeting, a website’s URL has to match:

  • All the exclusion rules
  • Some (Almost one) of the inclusion rules

For example, to target all the pages of your website except product pages, apply the following steps:

  1. Select contains > http://mydomain.com.
  2. Click Add condition.
  3. Select does not contain > /product/

⭐ Good to know

Adding exclusions only is not possible. To work properly, the targeting has to be filled with almost one inclusion condition. Otherwise the campaign will never be triggered on the website. If you want to add one or several exclusions, you need to add at least one inclusion (the entire website for example)

💡 Use case

Here are some examples of configuration, depending on the pages of your website you want to target:

  Target the homepage of your website

  URL operator

  is

  URL

  http://mydomain.com

  Result

  The modified page will be seen by your visitors, including those being redirected from partner websites or having clicked on sponsored links. In this case, the URL displayed in their browser is followed by UTM or other tracking parameters. However, AB Tasty recognizes the URL regardless of the parameters linked to it and displays changes to the relevant visitors.

  Example of a URL

  You will target the http://mydomain.com page, as well as http://www.mydomain.com/?utm_medium=email and even http://www.mydomain.com/?utm_medium=cpc.

 

  Target all category pages of your website

  URL operator

  Contains

  URL string

  /category/

  Result

  The changes are applied to all pages for which the AB Tasty platform has identified the 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.

 

  Target all the product pages of your website.

  URL operator

  Is 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. 

  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.

 

Need additional information?

Submit your request at product.feedback@abtasty.com

Always happy to help! 

Ali_love.png

Was this article helpful?

/