Ad tech5 min read
Google Consent Mode v2: a complete implementation guide
How to implement Google Consent Mode v2: the four consent signals, gtag default and update commands, Tag Manager setup, regional defaults and testing.
Google Consent Mode v2
Cookiesh sets the right defaults before any Google tag loads and sends all four v2 signals the moment a visitor chooses, so Google Ads and GA4 keep measuring without breaking consent rules.
Requirements
The consent default must be set before Google tags load. If a tag fires first, it may set cookies before the visitor has chosen.
How Cookiesh handles it: The Cookiesh loader sets the defaults synchronously, before gtag.js or Google Tag Manager run, with a wait_for_update window for returning visitors.
Version 2 added ad_user_data and ad_personalization to ad_storage and analytics_storage. Without the new signals, Google limits remarketing and parts of conversion measurement.
How Cookiesh handles it: Cookiesh maps your categories to all four signals: analytics to analytics_storage, marketing to the three ad signals.
Google tags need an update command right after the choice, and on every later page view.
How Cookiesh handles it: Cookiesh sends gtag('consent', 'update', …) the moment a choice is saved, and on each page view for returning visitors.
Defaults should match local law: denied where opt-in is required, granted where it is not.
How Cookiesh handles it: Each geo-targeting rule has its own Consent Mode defaults, so EEA visitors start denied while other regions can start granted.
Consent Mode only controls Google tags. Meta, LinkedIn, TikTok and other vendors' scripts still need to be blocked until consent.
How Cookiesh handles it: The same consent choice gates every other script through auto-blocking and data-cookiesh, and triggers cookiesh_consent_updated in the dataLayer.
Setup
Add the script tag above your Google tag, or add the Cookiesh CMP template in Google Tag Manager with the Consent Initialization trigger.
Leave Google's built-in consent checks on, and require additional consent for non-Google tags in Tag Manager.
Open the Consent tab in Google Tag Assistant and confirm that the default and update events fire in the right order.
In depth
Consent Mode is how a consent platform tells Google tags what a visitor decided. Tags read four signals and adjust their behavior: with analytics_storage denied, Google Analytics does not set cookies; with ad_storage denied, Google Ads does not either. Version 2, introduced in late 2023, added ad_user_data and ad_personalization, which control whether user data may be sent to Google for advertising and used for personalized ads.
Since March 2024, Google has required valid consent signals for traffic from the European Economic Area to use its ads measurement and personalization features. Without them, remarketing audiences stop growing and conversion data for EEA visitors is limited. Google’s EU user consent policy also covers the UK and Switzerland.
Consent Mode is not a consent banner, though. It passes on a decision that something else has to collect, store and prove. That is Cookiesh’s job.
The Cookiesh loader runs before your Google tags and sets a default for each signal based on the visitor’s region. Returning visitors get their stored choice immediately. For new visitors, Google tags wait up to 500 milliseconds by default (wait_for_update) for Cookiesh to apply a choice. When a visitor chooses, Cookiesh sends an update with all four signals. If you use Google Tag Manager, the Cookiesh CMP template does the same through Tag Manager’s consent APIs, so you do not need any custom code.
This page is general information, not legal advice. Laws and regulator guidance change, so review your setup with your legal team.
FAQ
No law names it. It is a Google requirement: without consent signals for EEA traffic, features such as remarketing and parts of conversion measurement in Google Ads are limited. The legal duty to ask for consent comes from the ePrivacy Directive and the GDPR.
Yes. Consent Mode only tells Google tags what the visitor decided. You still need a banner that asks the question, stores the answer and holds back non-Google trackers.
In basic mode, Google tags do not load until the visitor consents. In advanced mode, they load with consent denied and send cookieless pings that Google uses for modeling. Cookiesh supports both; check with your legal team which one fits your risk appetite.
Yes. Consent signals travel with the requests that web tags send to your server container, so server-side tags can respect the same choice.
Ad tech5 min read
How to implement Google Consent Mode v2: the four consent signals, gtag default and update commands, Tag Manager setup, regional defaults and testing.
Ad tech5 min read
Basic vs. advanced Google Consent Mode compared: tag loading before consent, cookieless pings, conversion modeling, privacy risk and which one to pick.
Engineering4 min read
Server-side tagging moves vendor tags off the browser, but consent rules still apply. Learn what changes, what doesn't, and how to pass consent to your server.
Start free on one domain. Upgrade when you need more domains, geo-targeting or custom branding.
No credit card required · Cancel anytime