---
title: How to set up an AB test using the Didomi platform?
description: ⚠️ Attention ! Pas d'AB tests sans consentement en France ! Didomi offre une fonctionnalité AB test qui vous permet de tester deux notices différentes sur deux groupes d’utilisateurs afin de comparer
---

[Skip to content](https://support.didomi.io/run-an-ab-test-with-didomi#main-content)

- [English](https://support.didomi.io/run-an-ab-test-with-didomi)
- [Français](https://support.didomi.io/fr/faire-un-ab-test-avec-la-console-didomi)

English

Show submenu for translations

[Customer portal](https://support.didomi.io/tickets-view)

![Didomi SAS](https://support.didomi.io/hs-fs/hubfs/Didomi-tail-name.png?width=182&height=34&name=Didomi-tail-name.png)

Open main navigation

Close main navigation

- - [English](https://support.didomi.io/run-an-ab-test-with-didomi)
    - [Français](https://support.didomi.io/fr/faire-un-ab-test-avec-la-console-didomi)
  
  
  
  
  
  
  English
  
  Show submenu for translations
- [Customer portal](https://support.didomi.io/tickets-view)
- Go to didomi.io

 Go to didomi.io

 Our documentation has moved to docs.didomi.io. Please update any bookmarks.

- There are no suggestions because the search field is empty.

1. [Help Center](https://support.didomi.io/)
2. [FAQ](https://support.didomi.io/faq)
3. [Customization](https://support.didomi.io/faq#customization)

# How to set up an AB test using the Didomi platform?

 

⚠️  **Be careful! No AB tests without consent in several countries !**

Didomi offers an AB test feature which allows you to test two different notices on two groups of users in order to compare the results obtained. 

In the light of the recommendations by the French data protection authority (CNIL), obtaining the user’s consent is required to use these tests. The same is true in other European countries.

**Therefore, in order to comply with legal recommendations, we recommend that you consult your legal department before using our AB test functionality, to find out if you have their authorization.**

### **What is an AB test?**

An AB test allows you to compare consent rates of two groups of user population, the control group and the test group. For instance, your control group will see a pop-in format banner on your website, whereas your test group will see a bottom banner.

The Didomi SDK allows you to run AB tests to compare the consent rates and other metrics of two groups of populations (control and test group). We support running AB tests through your preferred vendor or through the Didomi platform.

#### **How to set up an AB test using the Didomi platform?**

In order to set up an AB test using the Didomi platform, you need to go to the "**CUSTOMIZATION**" step of the creation of your consent notice and then click on the "**Advanced settings**" section. You will be able to add some code in the custom JSON window.

![](https://support.didomi.io/hs-fs/hubfs/Capture%20d%E2%80%99%C3%A9cran%202024-01-18%20%C3%A0%2010-57-10-png.png?width=568&height=106&name=Capture%20d%E2%80%99%C3%A9cran%202024-01-18%20%C3%A0%2010-57-10-png.png)

You need to add an experiment in this window. An experiment is composed of several

parts : 

- **The ID** : You need to name your test in order to be able to distinguish it (use lower cases letters and only dashes as special characters).
- **The size** : You need to indicate the desired size of your test group (percentage between 0 and 1). Keeping in mind that the size of the control group will be (1 - size).
- **The configuration** : You have to indicate which extra configuration will be applied to your test group.
- **The start date** : It has to appear with this example format "2019-03-06T23:38:50Z". It is important to indicate the start date to ensure that you are showing the new configuration to new users.

The control group corresponds to the group that sees your default configuration, whereas the test group is the one seeing the default configuration PLUS the specific one for them.

📑 [The developers documentation](https://web.archive.org/web/20230331004610/https://developers.didomi.io/cmp/web-sdk/ab-tests) will give you examples of experiments. The examples are in Javascript, for customers not using the Didomi console. But if you are using the "custom json" field of the console to implement your AB test, this is an example in Json language :

{  
  "app": {  
    "apiKey": "<Your API Key>",  
    "name": "My website",  
    "vendors": {  
      "iab": {  
        "all": true  
      }  
    }  
  },  
  "notice": {  
    "position": "bottom"  
  },  
  "experiment": {  
    "id": "test-notice-format",  
    "size": 0.2,  
    "startDate": "2019-03-06T23:38:50Z",  
    "config": {  
      "notice": {  
        "position": "popup"  
      }  
    }  
  }  
}

#### **B- What can you AB test?**

With the Didomi console, you can AB test :

- The format of your banner (sticky vs pop-in)
- The buttons
- The design of your cookie banner
- etc

We advise you not to test too many variations at the same time as you will not be able to attribute the performance results of your test group to a specific variable. Multivariate tests are not possible in the Didomi console.

#### **Performance results of your AB test(s)**

You will be able to see the results of your AB test(s) in the "**Analytics**" section of the Didomi console.

![](https://support.didomi.io/hs-fs/hubfs/Capture%20d%E2%80%99%C3%A9cran%202024-01-18%20%C3%A0%2010-58-59-png.png?width=671&height=1063&name=Capture%20d%E2%80%99%C3%A9cran%202024-01-18%20%C3%A0%2010-58-59-png.png)

 

 

- [Consent notice creation](https://support.didomi.io/consent-notice-creation#main-content)
  
  
  
  
  
    - [Basics](https://support.didomi.io/consent-notice-creation#basics)
    - [Consent notice per device](https://support.didomi.io/consent-notice-creation#consent-notice-per-device)
    - [Manage Vendors and Purposes](https://support.didomi.io/consent-notice-creation#manage-vendors-and-purposes)
    - [Customization](https://support.didomi.io/consent-notice-creation#customization)
    - [Multi-regulations](https://support.didomi.io/consent-notice-creation#multi-regulations)
    - [Frameworks](https://support.didomi.io/consent-notice-creation#frameworks)
    - [Integrations](https://support.didomi.io/consent-notice-creation#integrations)
    - [Console migration](https://support.didomi.io/consent-notice-creation#console-migration)
    - [IAB GPP Framework](https://support.didomi.io/consent-notice-creation#iab-gpp-framework)
    - [Accessibility](https://support.didomi.io/consent-notice-creation#accessibility)
- [Compliance report](https://support.didomi.io/compliance-report#main-content)
  
  
  
  
  
    - [CMP Vendor Sync](https://support.didomi.io/compliance-report#cmp-vendor-sync)
    - [Advanced Compliance Monitoring](https://support.didomi.io/compliance-report#advanced-compliance-monitoring)
- [Preference Management Platform](https://support.didomi.io/preference-management-platform#main-content)
  
  
  
  
  
    - [Configuration Tree](https://support.didomi.io/preference-management-platform#configuration-tree)
    - [Widget](https://support.didomi.io/preference-management-platform#widget)
    - [Deployment](https://support.didomi.io/preference-management-platform#deployment)
- [Google integrations](https://support.didomi.io/google-integrations)
- [Privacy Request](https://support.didomi.io/privacy-request#main-content)
  
  
  
  
  
    - [User Requests](https://support.didomi.io/privacy-request#user-requests)
    - [Widgets](https://support.didomi.io/privacy-request#widgets)
- [IAB TCF](https://support.didomi.io/iab-tcf#main-content)
  
  
  
  
  
    - [Google & TCF](https://support.didomi.io/iab-tcf#google-tcf)
    - [TCFv2 Presentation](https://support.didomi.io/iab-tcf#tcfv2-presentation)
    - [TCF v2.2](https://support.didomi.io/iab-tcf#tcf-v2-2)
- [Analytics](https://support.didomi.io/analytics#main-content)
  
  
  
  
  
    - [Consent Management Platform (CMP) Analytics](https://support.didomi.io/analytics#consent-management-platform-cmp-analytics)
    - [Preference Management Platform (PMP) Analytics](https://support.didomi.io/analytics#preference-management-platform-pmp-analytics)
    - [ACM (Advance Compliance Monitoring)](https://support.didomi.io/analytics#acm-advance-compliance-monitoring)
- [Integrations](https://support.didomi.io/integrations#main-content)
  
  
  
  
  
    - [AB testing](https://support.didomi.io/integrations#ab-testing)
    - [Paywalls](https://support.didomi.io/integrations#paywalls)
    - [CMS](https://support.didomi.io/integrations#cms)
    - [Generic integrations](https://support.didomi.io/integrations#generic-integrations)
    - [Marketing automation](https://support.didomi.io/integrations#marketing-automation)
    - [Customer Data Platform (CDP)](https://support.didomi.io/integrations#customer-data-platform-cdp)
    - [CRM](https://support.didomi.io/integrations#crm)
- [Lexicon](https://support.didomi.io/lexicon)
- [Legal Requirements](https://support.didomi.io/legal-requirements#main-content)
  
  
  
  
  
    - [Didomi SDK compliance](https://support.didomi.io/legal-requirements#didomi-sdk-compliance)
- [Privacy Center and Data Processing](https://support.didomi.io/privacy-center-and-data-processing)
- [FAQ](https://support.didomi.io/faq#main-content)
  
  
  
  
  
    - [CMP / Managing tags](https://support.didomi.io/faq#cmp-managing-tags)
    - [CMP / Data Privacy for publishers](https://support.didomi.io/faq#cmp-data-privacy-for-publishers)
    - [CMP / Implementing a consent notice](https://support.didomi.io/faq#cmp-implementing-a-consent-notice)
    - [Debugging](https://support.didomi.io/faq#debugging)
    - [CMP / CPRA](https://support.didomi.io/faq#cmp-cpra)
    - [CMP / Analytics](https://support.didomi.io/faq#cmp-analytics)
    - [PMP](https://support.didomi.io/faq#pmp)
    - [Share consent](https://support.didomi.io/faq#share-consent)
    - [Customization](https://support.didomi.io/faq#customization)
    - [Cookies](https://support.didomi.io/faq#cookies)
    - [IAB](https://support.didomi.io/faq#iab)
- [Versions & Proofs](https://support.didomi.io/versions-proofs)
- [Login & Security](https://support.didomi.io/login-security#main-content)
  
  
  
  
  
    - [SSO](https://support.didomi.io/login-security#sso)
    - [Users, Teams and Permissions](https://support.didomi.io/login-security#users-teams-and-permissions)
- [Privacy Hub widget](https://support.didomi.io/privacy-hub-widget)
- [Consent Notices (old flow)](https://support.didomi.io/consent-notices-old-flow)
- [Consent Notices (NEW FLOW)](https://support.didomi.io/consent-notices-new-flow)
- [Customer Portal - Tickets](https://support.didomi.io/customer-portal-tickets)
- [Organization settings](https://support.didomi.io/organization-settings)
- [SDK version control](https://support.didomi.io/sdk-version-control)

Didomi, verb in ancient greek (δ‌‌ιδο‌μι): consent.

Copyright © 2026, Didomi SAS

Cookies