1. Home
  2. A/B testing
  3. Types of A/B tests
  4. Per document type

Per document type

Thanks to the unique implementation of the uMarketingSuite within Umbraco it is possible to test all pages of a specific document type. Simply select the document type(s) you want to test and the uMarketingSuite will make sure that the correct css and/or javascript will be inserted to this page.

The test type "Document type" 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.