Multi-pages A/B test

3

min

quiz

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

Create your variations as usual. The targeting will be defined during the test finalization.

Target pages according to their URL

When you have created your variations and your test is ready to be launched, click on the “Finalize” button. In the second step, “Targeting” will enable you to select the pages of your choice.

Several pages sharing the same URL

If you want to add more segments to target, click on “Target a segment” and then “Create a new segment”.

The segment creation window opens. Double-click on the “Page URL” condition or drag and drop to select it. You can add this condition as many times as you need to, for example to add several URLs.

Note: A wide range of targeting conditions are available. For further information on targeting options, please read our article Managing targeting segments.

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

cond_url_page_en.png

Kameleoon offers three options:

cond_url_2_en.png

  • Contains: runs the test on all URLs containing a URL fragment.
  • Corresponds exactly to: the test will only run on the URL of your choice. If your URL contains changing parameters, use the “Matches the regular expression” mode.
  • Matches 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:

cond_url_3_en.png

The regular expression above requests 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 by 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

Explanation:

  • 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 for a “Specific advanced segment” and follow the steps above, or choose to launch the test on “URLs containing a specific fragment” in 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 all these pages’ URLs contain one identical fragment, you should use this targeting option.

When you have selected “URLs containing a fragment”, a new field appears, where you can enter 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 to 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

Sometimes Kameleoon’s URL targeting feature doesn’t work for your test targeting. This may be due to two reasons:

  • All the URLs are different
  • You want to test the last step of a process (registration, booking, etc.) containing several steps but only one URL. Targeting the URL would include all steps in the A/B test, so in this case, URL targeting doesn’t work.

These problems are solved by Kameleoon’s “Presence of an element on the page” feature. You check the presence of a predefined element before including visitors in your A/B test.

In the “Create a new segment”, click on “Technical” and select the “Element on the page” feature, either by double-clicking or via a drap and drop.

If your page contains a unique element (particularly in the case of a multi-step process with the same URL), you can use this method to target your test. To do so, simply indicate the HTML element’s ID or the CSS selector to precisely define the element.

Note: It is preferable to choose an element at the top of the page. The lower its position, 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 decide whether to run the test 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 “the entire site” when you choose your target audience.