Follow

Including and excluding of URLs

About this page

This page is about how to include and exclude URLs when setting up an Experiment.

Including and excluding of URLs

Enter the URL of the page on which the experiment runs. If the test page is just one and a Simple match, enter the URL of the page. If the test runs on multiple pages, use the Add include URL-button for extra fields.

The ‘Product page’ on a shopping site, or the 'Property page’ on a real estate site might need only a part of the URL to be able to include many pages. In these cases, select Regular expression to describe the part of the URL that groups these pages together.
For more information look at Regular expression below.

Use Include these URLs and Exclude these URLs to specify pages to include in, or exclude from a created target group.

Setting URL types

URLs consist of these parts:

  • Scheme or protocol
    • https:// or http://
  • Host name or domain name
    • www.example.com
  • Path
    • directory and file name
  • GET parameters
    • such as search conditions and other information passed to the server

Simple match

These are the conditions for a Simple match:

  • in both URL, the https:// or http://-part has to be equal to match
  • in both URL, the GET parameters have to be equal, or the URL of the page that the visitor visits can have moreGET parameters to give a match

Look at this example http://www.example.com?aaa=1&bbb=2 to understand match and no match better:

  • Match
    • https://www.example.com?aaa=1&bbb=2
    • http://www.example.com?aaa=1&bbb=2&ccc=3
    • http://www.example.com?xxx=1&aaa=1&yyy=2&bbb=2
  • No match
    • http://example.com
    • http://www.example.com
    • http://www.example.com?aaa=1
    • http://www.example.com?aaa=1111&bbb=222

Regular expression

A Regular expression is the section of a URL that several different URLs have in common. This makes it possible to group them, and make them match.
The section can contain these elements:

  • . Period
  • ^ Start of a string
  • $ End of a string
  • () In the same group
  • * Repeat a number of times (including 0 times)
  • ? No repeat, just 1 or 0 time
  • \d Matching any number from 1-9

For example. When setting this URL as a Regular expression,

^https?://(www\.)*example\.com/result/\d+$

all of these URL will match it:

  • http://www.example.com/result/123
  • http://example.com/result/123
  • https://www.example.com/result/56789

Exact match

In case of an Exact match the complete URL has to be identical to provide a match.
(except in the scheme-section: https:// and http:// will match)

Left-hand match

For a Left-hand match, input the beginning of the URL. All other URLs with that same beginning will match.
(a difference in the scheme-section, https:// or http://, will still give a match)

http://www.example.com

With this target:

  • http://www.example.com/
  • https://www.example.com/123
  • https://www.example.com/result/56789

all of these will give a match.

Partial match

Partial match means that the section you have set as Partial match is found in the target URL.

example.com/123

With this target:

  • http://www.example.com/123
  • https://example.com/123456
  • http://www2.example.com/123//456

all of these will give a match.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.