1. Home
  2. A/B testing
  3. Types of A/B tests
  4. Multiple pages

Multiple pages

The multiple pages test allows you to test multiple pages at the same time. Within Umbraco you can simply select the webpages you want to test and all these pages you can specify which type of css or javascript will be added to the specific variant. Where the single page test enables you to start testing without writing any line of code, the multiple pages test requires you to write (or copy-in) some css and javascript-code.

The test type "Multiple pages" can be started in the Marketing section and in the content app. The type is selected in step 2 of the setup.

It allows you to select one or more pages within Umbraco. On all these page the A/B Test will render the additional css and javascript you will enter. It is important to make sure that the css and javascript will not create any side effects on these pages. This is a manual job that we cannot automate for you.

Once you've selected the pages you want to test, you can specify one or more variants. For each variant it is possible to click the Edit-button. This will bring up a popup that allows you to write javascript or css:

In this example we add some javascript to change the background-color of the webpage. (Of course you could have done that with css as well with the syntax 'body{background-color:red;}').

You can save & preview whether your code works by clicking "Save & preview".

After you've create all variants you can go and start your A/B testing as written in Setting up the A/B test.