Optimizely uses both cookies and localStorage to assign visitors to experiment buckets and persist personalisation decisions. Under GDPR, both of these require consent. Intastellar Consents gates Optimizely's cookie writes and localStorage access behind the analytics consent category, so experiments only run for consented visitors.
How to set up
Install Intastellar Consents
Add the Intastellar Consents script before your Optimizely snippet. Cookie and localStorage access will be blocked until consent is given.
Configure Optimizely's consent mode
In your Optimizely project settings, enable "Consent Mode" if available for your plan. This tells Optimizely to defer experiment activation until your CMP signals consent.
Verify experiment assignment
Open your site in incognito mode without accepting consent. Confirm that no experiment cookies or localStorage keys are set. Accept analytics consent. Optimizely should now assign the visitor to experiments.
What you get
- Cookie writes blocked until analytics consent is accepted
- localStorage access blocked until analytics consent is accepted
- Experiment activation deferred for non-consenting visitors
- Works with Optimizely Web Experimentation and Feature Experimentation
- Compatible with Optimizely's native consent mode setting