Multi-pages A/B test

Even if the editor is launched on one specific page of your website, you can launch your tests on several pages. It can be several pages with different URLs or several pages sharing the same URL.

Create your variations as usual: it is during the Test finalizer step that you will define the targeted pages.

Target pages according to their URLs

When you have created your variations and your test is ready to be launched, click on the “Test finalizer” button. It is the second step, “Choose your tracking and reporting system” that will allow you to select the pages of your choice.

Several pages sharing the same URL

By default, the test is set up on “This page”, which is the page on which you launched the editor. To target several pages sharing the same URL, select “A specific advanced segment”.

The advanced targeting window opens. Double click on the “Page URL” condition or drop it on the right part to select it. You can add this condition as many times as you need to, for example if you need to add several URLs.

Note: several targeting options are available.For further information on targeting options, please read our article Managing targeting segments

Indicate the URL of URL fragment you want to target on your website, and precise if you want to include or exclude it.

Kameleoon offers three kind of filters:

  • "Contains": allows you to run the test on all URL containing a URL fragment. 
  • "Correspond exactly": the test will only run for the URL of your choice. If your URL contains changing parameters, use the "Match the regular expression" mode.
  • "Match the regular expression": if your A/B test runs on a group of pages with specific parameters.
    For example: ?x=exemple&y=exemple2.

Let’s take this regular expression as an example:

The regular expression above, Kameleoon indicates to Kameleoon to run the test only on pages containing the path mywebsite.com/article/january and the parameter x=y.

Among the 5 following examples, only the first 2 URLs will be taken into account in the A/B test:

http://www.mywebsite.com/article/january?x=y
https://mywebsite.com/article/january?a=b&x=y&c=d
http://www.mywebsite.com/article/january
http://www.mywebsite.com/article/january/?x=y
http://www.mywebsite.com/article/january/monday?x=y

Indeed:

  • The 3rd URL does not contain the x=y parameter
  • The 4th URL contains a / after january 
  • The 5th URL has monday added at the end.

Several pages with the same URL fragment

To target several pages containing the same URL fragment, you can launch the test on a “Specific advanced segment” and follow the steps above, or choose directly on the “URLs containting a fragment” on the drop-down menu.

If, for instance, you want to change the color of the “Add to basket” button on each of your product pages, and if the URL of these pages contain a fragment that does not change from a page to another, you should use this targeting option.

When you have selected “URLs containing a fragment”, a new field appear, allowing you to type in the fragment of your choice.

If for instance all of your pages contain the /product/fragment, choose this value. The A/B test will only apply for pages containing this fragment.

If you want to exclude pages containing a fragment or define several fragments to include in your test, use the “Specific advanced segment” option to be more precise.

Target several pages without using the URL

From an element on the page

It can sometimes occur that the URL targeting offered by Kameleoon is not enough to target your A/B test pages. For instance, it can happen in the 2 following cases:

  • All the URLs are different
  • You want to test a process of your website (registration, booking, etc.) containing several steps but only one URL. If only the last step is included on the test, you cannot target your test through a URL.

To overcome this need, Kameleoon offers a targeting option named “Presence of an element on the page”, allowing you to test the presence of a predefined element before counting the visitor in the A/B test.

First of all, select “A specific advanced segment” in the “Run the test on” part.

Then, in the “Technical” part, select the “Presence of an element on the page” criterion.

If your page contains a unique element (particularly in the case of a multi-steps process with the same URL), you can use this method to target your test. To do so, simply indicate the identification of the HTML element or the CSS selector to identify clearly the element.

Note: It is preferable to choose an element at the top of the page. Indeed, the lower is the element, the higher is the risk of having a flickering effect on the test as Kameleoon has to wait for the presence of the element to know if the test needs to run or not.

For further information about CSS selectors, please read our article with CSS selectors examples.

On the whole website

You can also launch the test on all the pages of your website.

To do so, simply select “Entire site” when you choose your target audience.

Have more questions? Submit a request
Powered by Zendesk