CJakCiasteczko
Guide

Google Consent Mode v2 — what it is and how to deploy it correctly

Since March 2024 Google requires Consent Mode v2 for every site using Google Ads or Google Analytics 4 in the EEA. Without it — data loss in reports, no personalised remarketing, regulator-fine risk. Here's what you actually need to do.

The four signals you need to know

SignalDefaultWhat it controls
ad_storagedeniedWhether Google may store an advertising identifier on the device
ad_user_datadeniedWhether Google may send user data for advertising purposes (NEW in v2)
ad_personalizationdeniedWhether Google may use this user for remarketing (NEW in v2)
analytics_storagedeniedWhether GA4 may store _ga and _ga_* cookies

By default all four must be denied in the EEA. After the user clicks “Accept all” in the consent banner, the CMP sends gtag('consent', 'update', { all granted }) and the tags unblock.

When exactly you must deploy

Per Google's policy for the EEA & UK from 6 March 2024:

  • No Consent Mode v2 → no access to new audiences (Google Ads custom audiences, Floodlight, remarketing lists)
  • No Consent Mode v2 → degraded conversion measurement quality in GA4 and Google Ads
  • Plus political risk — the EU Commission and local DPAs are watching CMPs. Improper implementation = potential GDPR art. 6 fine

Practically: if you use gtag.js or Google Tag Manager and run ads in the EEA, Consent Mode v2 is mandatory.

How to deploy — order matters

The most common mistake: people paste the GA/GTM tag in head, then the CMP a bit lower. Result — tags fire before the CMP sets consent default. Tens of milliseconds of tracking-without-consent before the banner appears. That's a data leak.

Correct order in <head>:

  1. Inline script: gtag('consent', 'default', { ...denied })
  2. Async load CMP (consent banner)
  3. Async load gtag.js / GTM

Or simpler — a good CMP does step 1 for you. CJakCiasteczko sets consent default first, BEFORE any Google tag loads. Just paste our two lines before any other scripts in head.

How to verify it works

Three free tools, each checks something slightly different:

For comparison: a recent audit of sprzętly.pl (a customer using our script) — all 6 green, score 100/100.

Audit whether your site is compliant

Free 30-second audit. 6 checks, readable report.