Google Consent Mode v2 is the way a website or app tells Google tags what the visitor agreed to. Your consent banner records the choice, then calls gtag('consent', ...) with four signals. Google tags read those signals and change what they store and send. Consent Mode does not show a banner and does not decide whether you may track. It only carries the answer.
The four signals
Google's Consent Mode documentation lists these consent types for advertising and analytics.
| Signal | What it controls |
|---|---|
ad_storage | Whether advertising cookies or device identifiers may be stored |
analytics_storage | Whether analytics cookies or identifiers may be stored, such as _ga |
ad_user_data | Whether user data may be sent to Google for online advertising |
ad_personalization | Whether data may be used for personalized advertising, such as remarketing |
The first two control storage. The last two, added in v2, control how Google may use the data it receives. Other types such as functionality_storage and security_storage exist for non-advertising uses.
How does Consent Mode work?
- A
defaultcommand runs before any Google tag, usually with everythingdeniedfor visitors in regions that need opt-in consent. In Google Tag Manager this fires on the Consent Initialization trigger. - The visitor makes a choice in the banner.
- The banner calls an
updatecommand, such asad_storage: 'granted'. - Google tags adjust. With storage denied, they do not read or write their cookies. With
ad_user_datadenied, they do not send personal data such as enhanced conversions data.
Basic mode blocks Google tags until the visitor interacts with the banner. If the visitor declines, nothing is sent, not even the consent state. Advanced mode loads the tags with the denied default and sends cookieless pings, which carry the consent state and the event but no cookie. Google uses those pings for conversion and behavioral modeling.
Why it matters
Google ads and analytics features that use personal data depend on these signals. If ad_user_data and ad_personalization are missing for EEA traffic, features such as remarketing audiences and some measurement for that traffic stop working. Getting the signals right is also the only way Google can model the conversions you cannot observe.
Common pitfalls
- Default fires too late. If a tag runs before the
defaultcommand, it runs without consent. - The banner never calls
update. Visitors accept, but tags stay denied, and reports drop for no clear reason. - Non-Google tags ignore it. Meta, TikTok, and other tags do not read Consent Mode on their own. They need consent settings in Tag Manager or their own logic.
- Server containers that drop the state. A server-side setup must pass the consent state through and apply it to every destination, not only Google ones.
How Hardal helps
Hardal is the first-party data and agentic analytics platform. It works with the consent state your banner sets, and it does not treat a server path as a way around a denial. As our FAQ on consent explains, data from visitors who decline is limited to anonymous cookieless pings and is not used for remarketing. The cookieless GA4 setup shows how consent and a server container fit together.
Related terms: Cookieless analytics, First-party data, Server-side GTM, Google Enhanced Conversions
Frequently asked questions
What changed in Consent Mode v2?
Version 2 added two signals, ad_user_data and ad_personalization, to the original ad_storage and analytics_storage. The new signals tell Google whether user data may be sent for advertising and whether it may be used for personalized ads such as remarketing.
What is the difference between basic and advanced Consent Mode?
In basic mode, Google tags do not load until the visitor interacts with the consent banner, and nothing is sent if they decline. In advanced mode, tags load with a denied default and send cookieless pings while consent is denied. Google says advanced mode supports an advertiser-specific conversion model, while basic mode uses a general model.
Is Consent Mode a cookie banner?
No. Consent Mode only passes the choice to Google tags. You still need a banner or consent management platform to ask the visitor and record the answer.
Does Consent Mode make tracking legal without consent?
No. It changes how Google tags behave after a choice. Whether you may collect data at all still depends on the law that applies to you, such as GDPR and the ePrivacy rules in the EU.
How do I check which consent state a hit carried?
Look at the gcs and gcd parameters on the Google request in the browser network tab, or use Tag Assistant. gcs covers ad_storage and analytics_storage. gcd encodes all the consent types and is always sent.