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

# A/B testing

> Start, stop and read your Kleep A/B test from the dashboard

## Overview

An A/B test measures what Kleep brings: part of your shoppers see the Kleep CTA (group `test`), the others don't (group `control`). The same test covers your website and your iOS and Android apps, and a signed-in member gets the same group everywhere.

Open **A/B Testing** in the dashboard sidebar.

> [!NOTE]
>
> A/B testing is available on demand. If the menu entry is not visible, contact your Kleep representative to enable it for your account.

## Before you start

| Platform | What is needed |
| - | - |
| **Website** | The member ID in `customer_id` and `checkout_completed` on the order page. See [JS library](https://docs.kleep.ai/cms/js-library/ai-sizing.md#a/b-testing) |
| **iOS** | SDK 4.6.0 or later, with `customerID`. See [iOS](https://docs.kleep.ai/mobile/ios.md#a/b-testing) |
| **Android** | SDK v4.2.3 or later, with `setCustomerId`. See [Android](https://docs.kleep.ai/mobile/android.md#a/b-testing) |

Shoppers on an older version of your app aren't part of the test: they keep seeing Kleep.

> [!WARNING]
>
> Pass the same member ID on the three platforms, character for character (same case, same hash). With different values, a member can see Kleep on one platform and not on another, which blurs the results.

## Run the test

Account owners and admins can act on the test. Other users see its status and results.

| Action | Effect |
| - | - |
| **Start** | The control group stops seeing the Kleep CTA |
| **Stop** | Every shopper sees the Kleep CTA again. You can start again later |
| **Change the split** | Sets the share of shoppers without Kleep, from 1% to 99%. Avoid it during a test: some shoppers change group |

**Start** and **Stop** ask for confirmation. The page lists the last actions, with their date and author.

## When a change applies

* **Website:** about a minute later, on the next page load. A shopper who was on your site in the last 10 minutes may see one more page with the previous status.
* **Apps:** at the next app launch, once the app has refreshed the status.

## How shoppers are split

* **Signed-in members** are split from their member ID: same group on the website and in the apps.
* **Other shoppers** are split from an anonymous ID of their browser or device.
* If the group can't be read (network error, ad blocker), the shopper sees Kleep and isn't counted.

## Read the results

Once the test runs, the same page shows the results by group. Keep the test running for at least a month, and wait until the return period of the last orders is over before reading the return rate.


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