For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

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 Content type can be started in the Engage section and in the Workspace View. The type is selected in the Test setup section.

Setup Test

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, select CSS / JS. This opens the Edit variant dialog, where you can write JavaScript or CSS:

Edit variant using CSS or JavaScript

In this example, some JavaScript changes the page's background color.

You can check if your code works by selecting Preview next to the variant.

After creating all variants, start your A/B testing as written in the Setting up the A/B test article.

Last updated

Was this helpful?