> For the complete documentation index, see [llms.txt](https://docs.umbraco.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.umbraco.com/umbraco-engage/marketers-and-editors/ab-testing/types-of-ab-tests/multiple-pages-test.md).

# Multiple Pages Test

Umbraco Engage provides the option to run A/B tests across multiple pages. This article covers how and when to use this type of test.

The Multiple Pages test allows you to run A/B tests across multiple pages at once. In Umbraco, you can select the pages you want to test. For all these pages you can specify which type of CSS or JavaScript will be added to the specific variant. 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 [Engage section](/umbraco-engage/marketers-and-editors/introduction/the-umbraco-engage-section.md) and in the [Workspace View](/umbraco-engage/marketers-and-editors/introduction/workspace-views.md). The type is selected in the **Test setup** section.

![Setup Test](https://2164986937-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fds5IoWmsX6a6ooVdYthx%2Fuploads%2Fgit-blob-097736b9eaeef696c6aaafc13b6e7fa7fd4f9aae%2Fengage-ab-test-mutliple-pages-v16.png?alt=media)

The test allows you to select one or more pages within Umbraco. On all these pages the A/B Test will render the additional CSS and JavaScript you enter. The CSS and JavaScript must not create any side effects on these pages. This is a manual job that cannot be automated with Umbraco Engage.

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:

![Edit variant using CSS or JavaScript](https://2164986937-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fds5IoWmsX6a6ooVdYthx%2Fuploads%2Fgit-blob-e1083cdf1441af0e9df2d6f2a0503ae4a0139933%2Fengage-ab-test-documettype-edit-variant.png?alt=media)

In this example, some JavaScript is added to change the page's background color.

You can check if your code works by clicking **Preview**.

After you have created all variants start your A/B testing as described in the [Setting up the A/B test](/umbraco-engage/marketers-and-editors/ab-testing/setting-up-the-ab-test.md) article.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.umbraco.com/umbraco-engage/marketers-and-editors/ab-testing/types-of-ab-tests/multiple-pages-test.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
