Consent Modes for Script Execution and Data Handling
We’ve introduced Consent Modes, giving you more control over how and when the experimentation script executes and handles visitor data.
Different websites have different privacy requirements and consent flows. With this new feature, you can configure the script behavior to better align with GDPR, the ePrivacy Directive, and your site’s consent management strategy.
You can now choose between three execution modes depending on how strictly your site handles user consent.
No Consent Mode (Default)
By default, the script runs without waiting for visitor consent.
In No Consent Mode, the script:
- Immediately executes experiments
- Assigns visitors to variations
- Begins tracking visitor interactions
- Sends experiment data to the database
This mode is suitable for environments where experimentation and analytics are allowed to run without prior consent.
Tracking Consent Mode
Tracking Consent Mode allows experiments to run immediately while delaying external data collection until consent has been granted.
In this mode, the script:
- Executes experiments immediately
- Allocates users to variations
- Tracks interactions locally in the browser
- Delays sending data to the database until consent is given
Once consent is granted, the stored data can then be transmitted.
This approach allows experiments to function normally while ensuring that no tracking data is sent externally before the visitor has consented.
Full Consent Mode
Full Consent Mode provides the strictest privacy behavior.
In this mode:
- The script loads in the background
- No experiments execute
- No tracking occurs
- No user data is stored
Only after the visitor gives consent will the script begin executing experiments and tracking interactions.
This mode is useful for sites that require explicit consent before any experimentation or tracking logic runs.
Choosing the Right Mode
Each mode offers a different balance between experiment execution and privacy compliance:
| Mode | Experiments Run Before Consent | Data Sent Before Consent |
|---|---|---|
| No Consent Mode | Yes | Yes |
| Tracking Consent Mode | Yes | No |
| Full Consent Mode | No | No |
This flexibility allows you to match your experimentation setup with the privacy expectations and regulatory requirements of your website.
Built for Modern Consent Flows
Many websites today use Consent Management Platforms (CMPs) or custom consent banners. Consent Modes make it easier to integrate experimentation into these flows while maintaining control over how visitor data is handled.
Whether you want experiments to run immediately, delay tracking, or wait entirely for consent, you now have the flexibility to configure the script to match your privacy strategy.
You can configure Consent Modes directly in your project settings to choose the behavior that best fits your site.