> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wappigate.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Email A/B Tests

> Try up to four versions of an email and see, or let the platform pick, the best one.

## What is this?

An **A/B test** compares different versions of the same campaign. You can vary the **subject**, the **template**, or both. Version A is always the campaign's own subject and template from the **Details** tab; you add up to three more versions (B, C and D). The report then shows opens and clicks for each version.

## What can I do here?

* Add up to three versions besides A, each with its own subject, its own template, or both
* **Split everyone evenly** — every contact gets one version, all at the same time, and no winner is chosen
* **Pick the winner automatically** — a small test group gets the versions first, the platform waits, then sends the best version to everyone else
* See the **Winner** and the test status on the campaign page

## How to use it

**1. Open the A/B test tab**

In a campaign (new or draft), open **A/B test** and turn on **A/B test (compare versions)**.

**2. Add versions**

Click **Add a version**. Each version needs its own subject, its own template, or both. A version with an empty subject keeps version A's subject, and **Same template as version A** keeps A's template.

**3. Choose how it runs**

* **Split everyone evenly** — equal parts, all at the same time. The same person always gets the same version.
* **Pick the winner automatically** — set the **Test group** (5% to 50% of the audience, 20% by default), **Choose the winner after** (30 minutes to 7 days, 4 hours by default) and **Best result means** — **Most opens** or **Most clicks**.

**4. Send the campaign**

Send or schedule as usual. The test group is sent first; the winner goes to everyone else after the wait.

### What the status tells you

On the campaign page the test shows one of: the test group is being sent, the test group has been sent and the winner is chosen at a stated time, or *Version B won (most opens) and was sent to everyone else*. A tie, or no data at all, picks version A. A version that sent no emails can't win.

### Shortcut: a second subject

In **Details**, **Second subject for an A/B test (optional)** is a quick even split between two subjects. Half get A and half get B, and nothing switches automatically. Leave it empty to send one subject to everyone.

## Troubleshooting / Technical Notes

* **"Open tracking is off, so opens cannot pick a winner."** Choose **Most clicks**, or turn on open tracking in [Compliance settings](https://docs.wappigate.com/workspace/email/compliance.md). The same applies the other way round for click tracking.
* **"Each version needs its own subject or its own template."** A version that changes nothing can't be added.
* **"The A/B test settings are not valid."** A test needs one to three versions besides A, a test group of 5% to 50%, and a wait of 30 minutes to 7 days.
* **The test group is very small.** It is never smaller than one contact per version.

## Related docs

* [Email Campaigns](https://docs.wappigate.com/workspace/email/campaigns.md)
* [Insights and Reports](https://docs.wappigate.com/workspace/email/insights.md)
* [Compliance and Suppression List](https://docs.wappigate.com/workspace/email/compliance.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.