When creating a test or a personalization campaign, you need to define the percentage of visitors assigned to the variation(s) (in case of a test) or scenario(s) (in case of a personalization) and to the original version of your website.
To learn about the traffic allocation step of the campaign creation flow, refer to Campaign flow: Traffic Allocation step.
Allocation system
For each individual visitor, we compute what we call a seed, a unique alphanumeric string that will be persistent in time. This seed, also unique for each campaign, will be used to generate a score between 1 and 100 and then the same logic as before applies.
As the seed is computed each time, we do not need to store the result anymore.
This allocation system doesn't work under the HTTP protocol as we are using cryptographic tools that are only available under a secure protocol.
If the tag detects it is on an insecure environment, it will automatically fallback to the old mechanism.
Let's take the example of a 50/50 campaign. If a visitor gets a score of 51, they will be exposed to the variant (a score above 49). If you decide to change the allocation from 50/50 to 60/40, the allocation will be computed again and their score of 51 will now place them in the original, as the original is now within 0 and 59. The visitor will switch from one variant to another.
Since July 2023, all campaigns are using this traffic allocation system and while this didn't drastically change the way your experiments will operate, there are several changes that you need to acknowledge.
Previously, we used to have a simple yet effective system that was based on a random function. For each new allocation that was needed to do, a virtual dice was rolled and we obtained a score between 1 and 100. For a 50/50 traffic allocation, any visitor with a score between 1 and 50 was assigned to the original and between 51 and 100 to the variant. Each campaign had its own dice roll.
The result of the allocation was stored in the cookie and read by the tag on the following pages. This is how we kept the navigation consistent for a unique visitor.
Allocation behavior
This table shows the different categories of users, representing your entire website traffic. For each category, information on what the users will see is displayed:
🚦 Type of traffic |
🍪 Visitor’s cookie campaign information (ABTasty cookie) |
💬 Comment |
---|---|---|
👻 Untracked visitors |
campaignId=[campaignId] |
Visitors who see the original version of your website but whose actions will not be taken into account. |
🎯 Tracked visitors (% of unique visitors of your campaign) |
campaignId=[campaignId] value/variationId=0 or variationID of the variation |
The original version of your website or a new variation/scenario of your website |
🏛 Traffic allocated to original |
campaignId=[campaignId] |
Visitors within the test sample who see the original version of your website. |
🆕 Traffic allocated to variations |
campaignId=[campaignId] variationId=[variationID of the variation] |
Visitors within the test sample who see a new version of your website (or one of the new versions if there are several variations/scenarios). |
It is highly not recommended to change the allocation while a campaign is running. Doing so might severely impact the reliability of your results, even more now with the new system. We strongly advise you to duplicate your campaign and start a fresh new one unless you consider the risk is low (the campaign is still in QA, only a few visitors have seen it until now, etc ..).
Use case
For example, let’s say you’ve implemented a ‘risky’ test and want to limit risk-taking. In this case, you can limit the number of visitors tracked and so that 40% of visitors aren’t tracked. That way, you reduce the test sample and limit the visibility of your new version(s). This means that these 40% of untracked visitors will see the original version of your website but won’t receive a cookie in their browser related to the test. Their actions on the website won’t be tracked unless you decide to increase the percentage of tracked visitors.
The percentage of visitors that you track depends on the volumetry of your website. For example, if your website has over 10M unique visitors per month, you can choose to track only 20% of the entire traffic (and limit the test sample to 20%). However, if you have around 200k unique visitors per month and decide to track 20% of the traffic, you won’t reach reliability quickly enough to determine whether you can increase the percentage of tracked visitors. For more information, refer to Campaign reporting.