Platform

AI

Wave
Agents
Amplitude MCP
AI Feedback
Agent Analytics
Early Access Program

Insights

Product Analytics
Marketing Analytics
Session Replay
Heatmaps

Action

Guides and Surveys
Feature Experimentation
Web Experimentation
Feature Management
Activation

Data

Data Governance
Integrations
Security & Privacy
Solutions
Solutions that drive business results
Deliver customer value and drive business outcomes
Amplitude Solutions →

Industry

Financial Services
B2B
Media
Healthcare
Ecommerce

Use Case

Acquisition
Retention
Monetization

Team

Product
Data
Engineering
Marketing

Size

Startups
Enterprise
Resources

Learn

Blog
Resource Library
Compare
Glossary
Explore Hub

Connect

Community
Events
Customers
Partners

Support & Services

Customer Help Center
Developer Hub
Product Updates
Academy & Training
Customer Success

Tools

Benchmarks
Prompt Library
Templates
Tracking Guides
Maturity Model
Event Taxonomy Generator
Pricing
LoginContact salesGet started

AI

WaveAgentsAmplitude MCPAI FeedbackAgent AnalyticsEarly Access Program

Insights

Product AnalyticsMarketing AnalyticsSession ReplayHeatmaps

Action

Guides and SurveysFeature ExperimentationWeb ExperimentationFeature ManagementActivation

Data

Data GovernanceIntegrationsSecurity & Privacy
Amplitude Solutions →

Industry

Financial ServicesB2BMediaHealthcareEcommerce

Use Case

AcquisitionRetentionMonetization

Team

ProductDataEngineeringMarketing

Size

StartupsEnterprise

Learn

BlogResource LibraryCompareGlossaryExplore Hub

Connect

CommunityEventsCustomersPartners

Support & Services

Customer Help CenterDeveloper HubProduct UpdatesAcademy & TrainingCustomer Success

Tools

BenchmarksPrompt LibraryTemplatesTracking GuidesMaturity ModelEvent Taxonomy Generator
LoginSign Up
Changelog/Web Experiment: Cookie consent management
Experiment·Aug 25, 2026

Web Experiment: Cookie consent management

The Web Experiment script now supports cookie consent gating. Customers can defer all device storage and third-party requests until a visitor consents — while still running experiments flicker-free while consent is pending.

What it is

Description: The Web Experiment script now supports cookie consent gating. Customers can defer all device storage and third-party requests until a visitor consents — while still running experiments flicker-free while consent is pending.

Why: EU customers (and others with CMP banners) need to run web experiments without writing cookies, localStorage, or sessionStorage — or firing impressions to third-party origins — before consent. Previously the only safe option was blocking the script entirely, which meant no experiments and visible flicker when consent arrived. This gives a compliant default that still delivers the test experience.

What’s new: • consentOptions on window.experimentConfig — opt in with consentRequired: true • window.webExperiment.setConsentStatus() — wire your CMP callback ('granted'/'denied') • Script behavior ◦ While pending: experiments evaluate and variants apply with no flicker; cookie/storage writes, impression events, and the RTBT relay iframe stay in memory only ◦ On grant: buffered identity, storage, and impressions flush to the device; relay loads ◦ On deny: client doesn’t start (or erases prior-session data on revocation); nothing persists from the pending buffer

Available in EUDC: Yes

When: Now!

Docs: amplitude.com/docs/web-experiment/cookies-and-consent-management

Implementation snippet:

<script>
  window.experimentConfig = {
    consentOptions: { consentRequired: true },
  };
</script>
<!-- Web Experiment script tag -->
// CMP callback
window.webExperiment?.setConsentStatus('granted'); // or 'denied'

Notes: • This gates Web Experiment only. Analytics consent is separate — pair with Browser SDK cookies & consent if they use both. • Works with the anti-flicker snippet and cross-subdomain identity/RTBT.

Release details
Release ID
web-experiment-cookie-consent-management
Shipped
Aug 25, 2026
Area
Experiment
Follow Experiment
All updates
← NewerSchedule experiment stopSep 01, 2026 · ExperimentOlder →Multiple triggers for Guides and SurveysAug 18, 2026 · Guides and Surveys
Platform
  • AI Agents
  • Agent Analytics
  • AI Feedback
  • Amplitude MCP
  • Product Analytics
  • Web Analytics
  • Feature Experimentation
  • Feature Management
  • Web Experimentation
  • Session Replay
  • Guides and Surveys
  • Activation
Compare us
  • Adobe
  • Google Analytics
  • Contentsquare
  • Fullstory
  • Heap
  • LaunchDarkly
  • Mixpanel
  • Optimizely
  • Pendo
  • PostHog
Resources
  • Resource Library
  • Blog
  • Agent Prompt Library
  • Product Updates
  • AI Early Access Program
  • Amp Champs
  • Amplitude Academy
  • Events
  • Glossary
  • Free Chart Maker
Partners & Support
  • Status
  • Contact Us
  • Customer Help Center
  • Community
  • Developer Docs
  • Partner Program
  • Partner Directory
  • Become an affiliate
Company
  • About Us
  • Careers
  • Press & News
  • Investor Relations
  • Diversity, Equity & Inclusion
View markdown
Terms of ServicePrivacy NoticeAcceptable Use PolicyLegal
EnglishJapanese (日本語)Korean (한국어)Español (LATAM)Español (Spain)Português (Brasil)Português (Portugal)FrançaisDeutsch
© 2026 Amplitude, Inc. All rights reserved. Amplitude is a registered trademark of Amplitude, Inc.