# A/B ou N testing

### 1. Business Value: Decide based on data, not intuition

A/B testing allows you to remove any doubts about the effectiveness of a change by comparing two (or more) versions with similar audience samples.

* **Maximising conversions**: Validate which headline or button generates the most clicks or purchases.
* **Consent optimisation:** Identify the banner design that maximises opt-ins while remaining compliant.
* **Risk reduction**: Test a new feature on a small percentage of your traffic before rolling it out across the board.

### 2. Implementation methodology

#### Step 1 : PREPARE THE DESIGN OF THE BANNERS TO BE TESTED&#x20;

* This first step consists of defining the format and design of the banners to be tested in your A/B test campaign.&#x20;
* Go to the Privacy Banners module to create your banners.

<figure><img src="/files/V54kxCw7TXf5V7bxsVei" alt="" width="181"><figcaption></figcaption></figure>

#### YOU DON'T KNOW HOW TO SET UP YOUR BANNER ?

* Don't panic, we've got a ready-to-use tutorial so all you have to do is follow it step by step.

{% embed url="<https://doc.commandersact.com/fr/fonctionnalites/consent-management/setup-guides>" %}

#### Step 2 : CREATE THE DISPLAY SCENARIO FOR YOUR A/B or N TEST&#x20;

* This step consists of telling your container which test scenario to run.&#x20;
* To do this, go to the menu Data management > Data specification > Web datalayer > Data storage&#x20;
* Then click on "add data storage".

<figure><img src="/files/RQU4HNZs9YQL6B93tFtd" alt=""><figcaption></figcaption></figure>

* Select the scenario you wish to deploy&#x20;
  * Either, A/B Test: 50%/50% :&#x20;

<figure><img src="/files/vuTOF4MRTwAwjgtxBRsP" alt="" width="310"><figcaption></figcaption></figure>

* That is, N Test: A 80% / B 10% / C 10% :

<figure><img src="/files/q76BTeUOY2smn9liAfUO" alt="" width="318"><figcaption></figcaption></figure>

***

#### Step 3 : ADD PRIVACY DISPLAY CONSTRAINTS ON COOKIES&#x20;

* The purpose of this step is to define the display scenario for the banners you created [in step 1](#step-1).&#x20;
* To do this, simply go to your container from the source > overview menu

<figure><img src="/files/4C5Jdm5U7ue4EU4f0muc" alt="" width="375"><figcaption></figcaption></figure>

* Then define your display constraint, as shown in the example below, from the Rules > Privacy Constraint menu.

<figure><img src="/files/hETOqSlPVOPuhopB9qAr" alt=""><figcaption></figcaption></figure>

* Choose the name for step 2 on the Name cookie :&#x20;

<figure><img src="/files/GS6KLfJRCgmj90b3rLjX" alt=""><figcaption></figcaption></figure>

***

#### Step 4 : ACTIVATE YOUR BANNERS TO BE TAKEN INTO ACCOUNT IN YOUR SCENARIO

* In the Generation section, activate the. Banners for A/B Test

<figure><img src="/files/QMxWO6fbWRrd7fNtXS2V" alt=""><figcaption></figcaption></figure>

#### Step 5 : DEPLOY YOUR CONTAINER TO PUT YOUR TEST SCENARIO INTO PRODUCTION&#x20;

* In the Generation section, activate the A/B Test banners by deploying your container on your website!

<figure><img src="/files/krP5QOj8FRJ2DcLQGCDb" alt=""><figcaption></figcaption></figure>

#### Need help setting up your first test?

Our consultants will help you define your test protocols and interpret statistical results to ensure reliable decisions. **Contact your dedicated consultant or our support team:** <support@commandersact.com>


---

# Agent Instructions: 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:

```
GET https://community.commandersact.com/customer-success/expand-your-uses/consent-management/a-b-ou-n-testing.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
