How to Implement GDPR-Compliant Cookie Consent with Google Consent Mode v2
Google Consent Mode v2 is mandatory for EEA advertisers. This step-by-step guide covers the four consent signals, default state configuration, prior blocking, and maintaining verifiable consent logs.
Google Consent Mode v2 is now a technical requirement for websites operating in the European Economic Area. If you rely on Google Analytics, Google Ads, or conversion tracking, you must send valid consent signals before processing personal data.
Many implementations are incomplete: tracking scripts load before consent, default states are misconfigured, or consent updates aren't synchronised across platforms. This guide explains how to implement it correctly in 2026, aligning GDPR requirements with proper technical execution.
Understanding the Role of Google Consent Mode v2
Consent Mode v2 introduces four required consent signals:
ad_storageanalytics_storagead_user_dataad_personalization
These signals tell Google whether data processing is permitted. But Consent Mode itself does not collect consent. It only reacts to consent decisions made elsewhere. Your website must first implement a legally compliant consent collection mechanism before configuring Google tags.
Step 1: Implement a GDPR-Compliant Consent Mechanism
Before configuring Google services, your website must meet core GDPR consent requirements. According to Articles 4(11) and 7 of the GDPR, consent must be freely given, specific, informed, and unambiguous. Storing or accessing information on a user's device also requires prior consent under the ePrivacy Directive (2002/58/EC).
The European Data Protection Board (EDPB) guidelines clarify that:
- No pre-ticked boxes are permitted
- Implied consent is invalid
- Granular category choices are required
- Consent must be withdrawable at any time
A compliant CMP must enforce prior blocking. No tracking technology should activate before a positive opt-in signal is recorded.
Step 2: Configure the Default Consent State
The default consent state must deny all non-essential processing until the user actively grants permission. This configuration must execute before any Google tags load:
gtag('consent', 'default', {
analytics_storage: 'denied',
ad_storage: 'denied',
ad_user_data: 'denied',
ad_personalization: 'denied'
});
In Google Tag Manager, this requires using the Consent Initialization trigger and ensuring correct script execution order. Improper sequencing (for example, GTM loading before the consent defaults fire) may result in cookies being set before consent, which violates EU cookie requirements.
In Advanced mode, Google tags fire in a cookieless, non-identifying mode when consent is denied. This enables conversion modeling. In Basic mode, tags don't fire at all when declined. No modeling, no data. See our Advanced vs Basic mode guide for the practical impact on campaign reporting.
Step 3: Synchronise Consent Signals Across Your Stack
Modern websites rarely run a single tracking tool. A typical stack includes Google Tag Manager, Google Analytics, Google Ads, Meta Pixel, HubSpot, and Shopify tracking. When a user updates consent preferences, those changes must propagate consistently across all platforms.
Without a synchronisation layer, consent signals may be inconsistent: a user who declines analytics might still be tracked by a tag that didn't receive the update signal. A properly integrated CMP fires the update to all platforms simultaneously.
Intastellar handles this automatically. See the Google Consent Mode integration and GTM integration for implementation specifics.
Step 4: Ensure Prior Blocking of Non-Essential Scripts
Consent Mode v2 does not replace prior blocking. It adjusts how Google processes data once tags fire, but EU law requires that non-essential cookies are not set before explicit opt-in regardless of what Consent Mode is doing.
Technical enforcement includes:
- Conditional tag firing in Google Tag Manager (Consent Type triggers)
- Script wrappers preventing premature execution
- Server-side tagging controls where applicable
Verify this is working by opening an incognito window, loading your site without interacting with the banner, and checking Network requests. No requests to analytics.google.com, googletagmanager.com with consent-bearing parameters, or ad network domains should appear before consent interaction.
Step 5: Maintain Verifiable Consent Logs
Article 7(1) of the GDPR requires controllers to be able to demonstrate that the data subject has consented. This means storing:
- Consent status per category
- Timestamp of the decision
- Categories presented at time of consent
- Policy version displayed
Browser-only storage (localStorage, cookies) is not sufficient in an audit scenario. Server-side consent logs provide tamper-evident records that survive cookie clears and browser resets.
Verifying the Full Implementation
Three tools to confirm everything is working:
- Chrome DevTools → Network: Look for a
googletagmanager.comrequest with consent parameters firing before any analytics or ad tags on page load (before banner interaction). - Google Tag Assistant: Will show a Consent Mode badge on GA4 and Google Ads tags, and flag if the default consent state is missing or firing too late.
- Google Ads → Tools → Conversion settings: "Conversion modeling" should switch from "Not eligible" to "Active" once Advanced mode signals are flowing correctly.
Conclusion
Google Consent Mode v2 is both a regulatory alignment mechanism and a platform requirement for EEA traffic. The difference between "enabled" and "compliant" lies in execution: specifically, whether your default state fires before tags, whether prior blocking is in place, and whether your consent records can withstand a regulatory audit.