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

# A/B Tests

Run A/B tests in Zipchat: split visitors 50/50, compare bubble chat, AI Search, product page questions or campaigns, and see which setup sells more.

An A/B test shows you which Zipchat setup sells more. Zipchat splits your visitors 50/50: group A keeps your current setup, group B gets one change. You then compare visitors, conversations, purchases and revenue for each group.

{% embed url="<https://www.loom.com/share/3b5609f445b54289b502e3c3cb368781>" %}

## What you can test

| Test                                 | Group A                        | Group B                                       |
| ------------------------------------ | ------------------------------ | --------------------------------------------- |
| **Bubble chat on or off**            | Your current bubble setting    | The bubble switched the other way             |
| **Bubble chat or WhatsApp bubble**   | Your chat bubble               | A WhatsApp bubble                             |
| **AI Search on or off**              | Your current AI Search setting | AI Search switched the other way              |
| **Product page questions on or off** | Your current setting           | Product page questions switched the other way |
| **A campaign on or off**             | No proactive campaign          | One proactive campaign                        |
| **Two campaigns head to head**       | One proactive campaign         | Another proactive campaign                    |

Each test flips one setting. If a feature is on today, group B gets it off, and the other way around.

When a feature is off for a visitor, it does not appear at all. With AI Search off, the search bar opens your store's own search. With product page questions off, the questions block does not show on product pages.

## Before you start

Some tests need a setup first:

* **Bubble chat on or off:** not available when both devices already show a WhatsApp bubble. Test the bubble against WhatsApp instead.
* **Bubble chat or WhatsApp bubble:** WhatsApp must be connected, and the bubble must be on for at least one device. See [WhatsApp Business Cloud API](https://docs.zipchat.ai/channels/whatsapp-business.md).
* **AI Search on or off:** your search selectors must be set. See [Agentic AI Search](https://docs.zipchat.ai/channels/ai-search.md).
* **A campaign on or off:** you need at least one proactive campaign. See [In-Site Proactive Chat](https://docs.zipchat.ai/marketing-campaigns-and-automation/proactive-chat.md).
* **Two campaigns head to head:** you need at least two proactive campaigns.

The test counts purchases, so it needs sales tracking. Shopify stores have it from install. On other platforms, turn on [purchase tracking](https://docs.zipchat.ai/developers-and-integrations/sales-pixel.md) first. Otherwise the form shows "Turn on sales tracking so the test can count purchases".

A/B tests are available on every plan, to account owners and editors. The feature itself costs nothing extra.

## Start a test

1. Go to **Campaigns → A/B tests** and click **Create A/B test**. You can also click **Create campaign** and pick A/B test.
2. Give the test a name, or leave it empty to name it after what you test. Only you see the name.
3. Choose what you want to test.
4. Click **Start test**.

![Create an A/B test in Zipchat](https://2043605213-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvYpZDb6HsnLHFu8ZygCS%2Fuploads%2Fld3sqd9WCE6gU413JDwo%2Fab-tests-create-2026-11.webp?alt=media)

One test runs at a time on each AI agent. If your account has several agents, you can run one test on each.

The test applies to desktop and mobile. You cannot limit it to one device or to some pages. In a head-to-head test, each campaign keeps its own page rules.

## How visitors are split

Each visitor is put in group A or B and stays in the same group on every visit. Zipchat remembers the group through the visitor ID stored in the browser.

* Visitors who already chatted before the test also join it.
* A visitor who changes device or browser, or clears browser data, counts as a new visitor and can land in either group.
* Bots are not counted, and neither are your own Test Chat sessions.

## Read the results

For each group you see:

| Metric                            | What it means                                                                                                                    |
| --------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
| **Visitors**                      | Visitors in the group                                                                                                            |
| **Conversations on Zipchat**      | Conversations in the group. Below it, the share of visitors who started one                                                      |
| **Purchases**                     | All purchases by visitors in the group, whether they chatted or not. Below it, the conversion rate: share of visitors who bought |
| **Conversation to purchase rate** | Purchases by shoppers who chatted, per conversation                                                                              |
| **Revenue**                       | Sales from the group, in your agent's reporting currency                                                                         |
| **Average order value**           | Revenue divided by purchases                                                                                                     |

Purchases are linked to the visitor for the whole test, not only within 24 hours of a chat. So the test measures the effect on your whole store, not only on shoppers who chat.

Zipchat does not pick a winner for you. Compare the two groups and decide. Let a test run for at least 7 to 14 days, so it covers full weeks of traffic, and wait for a few hundred purchases or a few thousand visits before you decide.

## While the test runs

Avoid changing the tested setting while the test runs, for example the bubble texts or a campaign in the test. A change affects both groups and makes the results harder to read. The data already collected stays.

A test cannot be paused. AI replies in test conversations count toward your plan as usual.

## End a test

1. Open the test and click **End test** at the top right.
2. Choose what happens next:
   * **Apply B**: group B's change becomes your setup for everyone. For example, if B turned the bubble off, the bubble is turned off for all visitors. In a head-to-head test, campaign B stays on and campaign A is paused.
   * **Keep current setup**: everyone sees your current setup again.

A test runs until you end it. Ended tests stay in **Campaigns → A/B tests** with their results, so you can check them later. There is no undo button, but you can change your settings back by hand at any time.

## FAQ

### Can I change the 50/50 split?

No. Every test splits visitors 50/50.

### Does the test count only shoppers who chatted?

No. Purchases and revenue include every visitor in the group. The conversation to purchase rate shows purchases by shoppers who chatted, per conversation.

### How long should a test run?

At least 7 to 14 days, so you cover full weeks of traffic. Wait for a few hundred purchases or a few thousand visits before you decide.

### Can I run two tests at the same time?

One test runs at a time on each AI agent. With several agents, you can run one test on each.

### Does a test cost extra?

No. A/B tests are included. AI replies in test conversations count toward your plan as usual.

### Do I need sales tracking on a non-Shopify store?

Yes. Turn on [purchase tracking](https://docs.zipchat.ai/developers-and-integrations/sales-pixel.md) so the test can count purchases.


---

# 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.zipchat.ai/marketing-campaigns-and-automation/a-b-tests.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.
