Google Analytics And GTM Consent Mode: A GDPR-First Approach

Privacy and performance can work together. We are implementing Consent Mode fully across Google Analytics and Google Tag Manager. Here is how it works, why it matters, and how to test it.

7 min read
Isometric illustration of cybersecurity elements: cloud, server, security camera, key, shield, smartphone, and password entry device.

GDPR compliance is not a banner you add at the end. It is the foundation of how data reaches your analytics. We treat it that way. No tag should store or read anything on a visitor’s device until that visitor has made a choice.

Consent Mode connects that choice to Google’s tags. It tells Google Analytics and other Google tags what each visitor has allowed. Tags then adjust their behavior in real time, so your measurement respects every decision.

Consent Mode is a framework, not a consent banner. Your consent management platform (CMP) collects the visitor’s choice. Consent Mode passes that choice to your tags as a set of signals. Each tag then decides what it may store, read, and send.

The Four Signals That Matter

Consent Mode v2 centers on four core signals. Each one maps to a specific visitor choice.

clipboard icon

Analytics Storage

Controls whether analytics cookies may measure visits (analytics_storage). Denied means no analytics cookies.

lock icon

Ad Storage

Controls whether advertising cookies may be stored (ad_storage). Denied means no advertising identifiers on the device.

shield-halved icon

Ad User Data

Controls whether user data may be sent to Google for advertising purposes (ad_user_data).

sparkles icon

Ad Personalization

Controls whether data may power personalized advertising, such as remarketing (ad_personalization).

How We Set Up Google Tag Manager

Order matters. We set the default consent state before any other tag fires. In Google Tag Manager, that happens on the Consent Initialization trigger. It runs ahead of every other trigger on the page.

Every signal starts as denied. Region rules can tailor those defaults to where your visitors are. A short wait-for-update window lets the CMP restore a returning visitor’s saved choice before tags decide what to do.

When a visitor accepts, rejects, or customizes, the CMP sends an update. Signals change instantly. No page reload needed. Google tags read the new state and respond, while other tags rely on the consent checks configured in Tag Manager.

Rollout Guide

Our Rollout Checklist

Five steps take you from a tag audit to a tested consent setup.

1. Audit Every Tag And Cookie

List every tag, pixel, and script on the site. Map each one to the consent signal it needs. Remove anything that has no clear purpose.

2. Choose A Consent Platform With Consent Mode Support

Pick a CMP that integrates with Consent Mode and Google Tag Manager. Google maintains a list of certified CMP partners. Start there.

3. Set Safe Defaults

Default all four signals to denied. Add region rules that match your audience. Add a wait-for-update value so saved choices load before tags fire.

4. Wire Up Consent Updates

Confirm the CMP sends an update on every choice. That includes later changes made through a preferences link. Withdrawing consent should be as easy as giving it.

5. Test Before You Publish

Use Tag Manager’s preview mode and its consent view. Check each tag under denied and granted states. Fix anything that fires too early.

Choose Your Mode

Basic Mode Or Advanced Mode

Consent Mode offers two implementation styles. Each balances privacy and measurement differently.

Basic Mode

Basic Mode: Nothing Loads Before Consent

In basic mode, Google tags do not load until the visitor consents. Until then, no data goes to Google. It is the strictest option.

The trade-off is a measurement gap. You have no direct data from visitors who decline.

Advanced Mode

Advanced Mode: Tags Load, Signals Stay Denied

In advanced mode, Google tags load on every page with all signals denied. Before consent, they send cookieless pings. No analytics or advertising cookies are used.

Google can use those pings to model behavior for visitors who decline, where modeling thresholds are met. Once a visitor consents, tags switch to full measurement. Those pings still leave the browser, so your privacy notice and legal review must cover them.

Which To Pick

Which Mode Fits Your Organization?

There is no universal answer. Teams with a strict privacy stance often start with basic mode. Teams that value modeled insight often choose advanced mode.

Make the decision together with your legal counsel. Document it, and revisit it as regulations and guidance evolve.

What Changes In Your Reports

Consent changes your numbers. Expect it. When visitors decline, you will see fewer directly measured sessions and conversions. That is not a bug. It is your data reflecting real choices.

Google Analytics can fill part of the gap with modeled data when thresholds are met. Treat modeled figures as estimates, and label them clearly in stakeholder reports. Honest numbers build more trust than inflated ones.

How To Test Your Setup

Never trust a setup you have not tested. Open Tag Manager’s preview mode and load your site. Check the consent state on the very first page load, before you touch the banner. Every signal should read denied.

Next, accept, reject, and customize choices in turn. Confirm each tag fires only when its required signals are granted. Then open your browser’s network tab and inspect Google’s requests. Their consent parameters show the state that was actually sent.

Finally, return as a visitor who already made a choice. The saved choice should apply before any tag fires. Repeat these checks after every major site or tag change.

Consent Mode does not make a site compliant on its own. It works alongside a clear privacy notice, a valid consent banner, honest cookie categories, and sensible data retention. It also needs a simple way to withdraw consent.

We treat legal review as part of the project. This post describes a technical approach, not legal advice. Talk to your own counsel about what your situation requires.

Quick Answers

Consent Mode FAQs

Clear answers to the questions we hear most.

Is Consent Mode the same as a cookie banner?

No. The banner, provided by your consent management platform, collects the visitor’s choice. Consent Mode passes that choice to Google tags so they behave accordingly.

Do I need Consent Mode v2?

If you use Google advertising features with visitors from the European Economic Area, Google expects the newer ad user data and ad personalization signals. Without them, audience and remarketing features can be limited.

Will I lose analytics data?

You will see less directly measured data from visitors who decline. Where Google’s modeling thresholds are met, modeled data can fill part of that gap. Treat it as an estimate.

Does Consent Mode control non-Google tags?

Not by itself. Google tags read the signals natively. For other tags, use the consent settings in Google Tag Manager so each tag fires only with the consent it requires.

Ready To Put Privacy First?

Build analytics you can trust and defend. Talk to our team about a consent-first setup.