⚠️ Be careful! No AB tests without consent!
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 recent recommendations by the French data protection authority (CNIL), obtaining the user’s consent is required to use these tests.
Therefore, in order to be compliant with the CNIL recommendations, we do not recommend using our AB test feature anymore.
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 "BEHAVIOR" step of the creation of your consent notice and then scroll down the page to get to the "Advanced" section at the bottom. You will be able to add some code in the custom JSON window.
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.
Users from the test group will see the default configuration of your tag, plus the specific configuration for them.
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
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.
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 will give you examples of experiments.