> For the complete documentation index, see [llms.txt](https://docs.2checkout.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.2checkout.com/marketing/marketing/a-b-testing-guide/a-b-testing-campaigns-for-promotions.md). Agents can also search and read this documentation through its [MCP server](https://docs.2checkout.com/~gitbook/mcp).

# A/B testing campaigns for promotions

## Overview

***

Set up A/B testing campaigns for your promotions to identify whichwhat type of discount is more efficient.

## Requirements & limitations

***

* You can test up to five promotions in one experiment.
* You can only select pairs of promotions that have at least one common product.
* Promotions applied through the COUPON parameter directly into the URL are not taken into account in the A/B test. "Auto-apply" promotions, however, are taken into account. Nonetheless, promotions with the “Auto-apply” function will not appear in the A/B testing available promotions drop-down.
* Only regular promotions are available for use in A/B testing campaigns.

{% hint style="danger" %}
**Important!** When the shopper places the order, the test is considered successful regardless of the order or payment status.
{% endhint %}

## Setup

***

1. Go to the [Promotions](https://secure.avangate.com/cpanel/promotions.php) page and define the promotions that you want to test. Choose between percentage-based discounts and fixed discounts.
2. Navigate to the [A/B Testing](https://secure.avangate.com/cpanel/abtest.php?action=overview) page and click the [Campaigns](https://secure.avangate.com/cpanel/abtest.php) tab.
3. Scroll until you find the **Promotions** section and click **Edit Campaign** on an inactive campaign.
4. Fill in the details of the new campaign, such as the campaign name, maximum number of tests and the date when the campaign should end.
5. Create a new scenario by selecting a promotion from the drop-down menu and assigning the percentage of traffic you want to go through it. You can choose between existing promotions and assign them as A/B testing campaign variants. You can also test specific promotions against using no promotion at all by checking the **No promotion** option.
6. Click **Add Scenario**.
7. Repeat steps 5 and 6 until you have used the entire available traffic.
8. Click **Save campaign**.
9. Go back to the [Campaigns](https://secure.avangate.com/cpanel/abtest.php) tab and click the **Start Campaign** button when you want the campaign to begin.

## Where can I see what promotions are used in my A/B tests?

***

When you open a promotion's configuration page, a notification informs you if the promotion is being used in an A/B test at that moment.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.2checkout.com/marketing/marketing/a-b-testing-guide/a-b-testing-campaigns-for-promotions.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
