Document Type Test
Umbraco Engage enables running A/B tests on pages using a specified Document Type. This article covers how and when to use this type of test.
Last updated
Umbraco Engage enables running A/B tests on pages using a specified Document Type. This article covers how and when to use this type of test.
Last updated
Test all pages using a specific Document Type with this test. Select the Document Type(s) you want to test and Umbraco Engage makes sure the correct CSS and JavaScript is inserted to the correct pages.
The test type Document Type can be started in the Engage section and in the Content App. The type is selected in step 2 of the setup.
The test allows you to select one or more Document Types within Umbraco. On all pages using the selected Document Type(s) the A/B Test will render the additional CSS and JavaScript you will enter. The CSS and JavaScript must not create any side effects on these pages. This is a manual task.
Once you have 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, some JavaScript changes the page's background color.
You can save and preview whether your code works by clicking Save & preview.
After creating all variants, start your A/B testing as written in the Setting up the A/B test article.