GDPR-Compliant A/B Testing Without Unauthorized Tracking
Run experiments in Optimizely without violating GDPR or the ePrivacy Directive. Intastellar Consents ensures that Optimizely only executes after the user has granted the required consent category. Script execution is blocked by default and activated dynamically based on user preference.
- No experiment cookies before consent.
- No premature tracking.
- No inconsistent consent states.
Why Optimizely Requires Consent Handling
Optimizely typically:
- Assigns users to experiment variations
- Stores experiment identifiers in cookies
- Tracks user interactions and conversions
Under GDPR and the ePrivacy Directive, storing or accessing non-essential cookies generally requires prior consent in the EU.
Loading Optimizely before consent may result in:
- Unauthorized cookie placement
- Premature data processing
- Regulatory exposure
Intastellar Consents prevents this by default.
What Happens Before Consent
Until the required consent category (e.g. “Statistics”) is granted:
- Optimizely scripts do not execute
- No experiment cookies are set
- No variation assignments occur
- No behavioral tracking requests are sent
The Optimizely runtime is completely blocked.
How the Integration Works
Intastellar Consents enforces execution control using:
- Script blocking at initialization
- Fetch, XHR, and beacon interception
- Category-based activation logic
- Vendor-specific enforcement rules
Execution Flow
- Optimizely script is prevented from running by default
- User selects cookie preferences
- If the relevant category is accepted → Optimizely initializes
- If declined → script remains blocked
- If consent is updated later → state synchronizes dynamically
State Consistency
The integration is designed to avoid common CMP failures:
- No race conditions between banner and experiment loader
- No duplicate script injections
- No inconsistent consent states across page navigation
- No retroactive experiment tracking
Experiments only begin from the moment valid consent exists.
Google Consent Mode Compatibility
If used alongside Google Consent Mode, consent signals remain aligned across analytics and advertising systems.
Optimizely activation respects the same category logic, ensuring consistent tracking behavior across vendors.