Free Website AuditSee exactly what is holding your site back from ranking and converting. Claim yours

Free Website AuditClaim yours

Google Consent Mode v2: What It Is and How to Set It Up

What Google Consent Mode v2 is, who needs it, basic vs advanced mode, a step by step setup for any site including WordPress, and how to test it in Tag Assistant.
Digital Roots Media logo mark

By Michael C., SEO Strategist

On this page
Illustration of a light switch panel with four toggles labelled ad_storage, analytics_storage, ad_user_data and ad_personalization, the last two marked V2
Google Consent Mode v2 in one picture: four switches that tell Google tags what each visitor agreed to.

Google Consent Mode v2 is the way your website tells Google tags what a visitor agreed to in your cookie banner. It sends four consent signals: ad_storage, analytics_storage, ad_user_data and ad_personalization. Google Analytics 4 and Google Ads then adjust what they store and use for that visitor. If you advertise to people in the European Economic Area (EEA), the UK or Switzerland, Google requires those signals for measurement, remarketing and personalized ads.

This guide explains what changed in version 2, the difference between basic and advanced consent mode, how to set it up on any site (including WordPress) and how to test that it really works. Everything here comes from Google’s own consent mode documentation and help pages.

Key takeaways

  • Consent Mode v2 passes a visitor’s cookie choices to GA4 and Google Ads through four signals.
  • Version 2 added ad_user_data and ad_personalization to the original two storage signals.
  • Google requires consent signals for visitors in the EEA, the UK and Switzerland.
  • Basic mode blocks tags until the visitor chooses. Advanced mode sends cookieless pings and unlocks modeling.
  • A Google-certified consent platform does most of the work, but you still need to test it.
Free proposal
Want help putting this into action?

Share your website. We will send a free audit and a fixed-price plan built around your goals.

What is Google Consent Mode v2?

In Google’s words, consent mode lets developers adjust tag and app SDK behavior based on user consent choices. Your cookie banner, or consent management platform (CMP), collects the choice. Consent mode carries that choice to every Google tag on the page, so the tags know whether they may set cookies and whether the data may be used for ads.

Four light switches labelled ad cookies, analytics cookies, send data for ads and personalized ads, with the last two tagged new in v2
The four consent types. Version 2 added the two advertising signals on the right.
The four Google Consent Mode v2 signals
Consent type What it controls Added in
ad_storage Cookies and device identifiers used for advertising Version 1
analytics_storage Cookies and identifiers used for analytics, such as visit duration Version 1
ad_user_data Whether user data may be sent to Google for online advertising Version 2
ad_personalization Whether the data may be used for personalized ads and remarketing Version 2

Google also lists functionality, personalization and security storage types, but these four are the ones Google Ads and GA4 depend on. One detail catches people out: Google says that if ad_user_data and ad_personalization are set with conflicting values, personalization is disabled.

Who needs Consent Mode v2?

Google’s help pages are clear that consent is required in the EEA, the United Kingdom and Switzerland. Under Google’s EU user consent policy, if you use Google products on your site you must get legally valid consent for cookies and for ad personalization, keep records of that consent, tell visitors how to withdraw it and name every party that uses their data. Google may limit or suspend your use of its products if you do not.

Three region badges for the EEA, the UK and Switzerland plus Google Ads and GA4 tags, pointing to a switch labelled consent first, then send the signal
If you reach visitors in these regions with Google Ads or GA4, consent comes first and the signal goes to Google.

Consent Mode v2 is how you send proof of that consent to Google. Without it, the cost is concrete. Google Analytics Help says that, starting early March 2024, properties that take no action only include users outside the EEA in the audiences shared with linked advertising products. Personalized advertising and remarketing need affirmative consent signals. If you run retargeting ads to European visitors, those audiences stop growing.

What if all your customers are in the US? You do not need Consent Mode v2 for Google’s EEA rules, but US state privacy laws can still require a working cookie banner and opt-out handling. Many sites set consent mode up once for everyone and use region-specific defaults, which Google supports.

Basic vs advanced consent mode

Google offers two ways to implement consent mode, and the choice changes how much data you keep when a visitor says no.

Two lanes: in basic mode a declined visitor meets a wall and tags never load; in advanced mode a dotted line carries cookieless pings to a grey tag that feeds modeling
Basic mode sends nothing after a decline. Advanced mode sends cookieless pings that Google uses for modeling.
Basic vs advanced consent mode, from Google’s documentation
Basic consent mode Advanced consent mode
When Google tags load Only after the visitor interacts with the banner On page load, with consent set to denied by default
If the visitor declines No data is sent to Google, not even the consent status Tags send cookieless pings, with no cookies set
Conversion modeling in Google Ads General model Advertiser-specific model
Modeled data in GA4 None Possible once thresholds are met
Setup effort Simpler Needs careful default and update setup

Google’s Ads help notes a catch with basic mode: if tags are blocked until the visitor interacts with the banner, Google cannot verify the visitor’s consent choice, which may lead to data loss. Advanced mode keeps more measurement, but it is a bigger decision, because tags load before the visitor chooses. Talk it through with whoever advises you on privacy before you pick a mode.

How Consent Mode v2 works on a page

Every implementation follows the same order. The page sets a default state first, the banner asks, and the visitor’s choice is sent as an update.

Four numbered steps: default denied, banner shown, visitor chooses, update sent, with a switch off at the start and on at the end
The order matters: the default must be set before any Google tag fires.

Google’s setup guide shows the default command. It must run before any config or event commands, which means it goes above your Google tag:

<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('consent', 'default', {
    'ad_storage': 'denied',
    'analytics_storage': 'denied',
    'ad_user_data': 'denied',
    'ad_personalization': 'denied',
    'wait_for_update': 500
  });
</script>

The wait_for_update value gives an asynchronous CMP 500 milliseconds to load the visitor’s saved choice before tags fire. You can also pass a region parameter with ISO 3166-2 codes to set stricter defaults for some countries. As soon as the visitor makes a choice, the banner sends an update:

gtag('consent', 'update', {
  'ad_storage': 'granted',
  'analytics_storage': 'granted',
  'ad_user_data': 'granted',
  'ad_personalization': 'granted'
});

The choice must be stored and sent again on every later page, so a returning visitor is not asked twice and the tags keep the right state. Google also offers two optional settings: url_passthrough, which helps measure ad clicks without cookies, and ads_data_redaction, which strips ad click identifiers when ad_storage is denied.

Animation of a switch flipping from consent denied to consent granted while the GA4 and Ads tags change from grey pings to full measurement
One click changes everything: denied tags send pings, granted tags measure in full.

How to set up Consent Mode v2, step by step

Your Consent Mode v2 setupDo it in this order
  1. Scan your site and list every cookie and tracking tag, not just Google’s.
  2. Choose a consent management platform, ideally one from Google’s certified CMP list.
  3. Turn on Consent Mode v2 in the CMP and set the default to denied for regions that need consent.
  4. Make sure the default runs before the Google tag or Google Tag Manager container loads.
  5. Block non-Google marketing scripts until the visitor accepts.
  6. Decide between basic and advanced mode, and document the decision.
  7. Test every consent type in Tag Assistant, accepting and declining.
  8. Check the consent status in GA4 and in Google Ads conversion diagnostics.

The CMP is the heart of it. Google runs a CMP Partner Program that lists certified platforms such as Cookiebot by Usercentrics, CookieYes, OneTrust, iubenda and Complianz. Google says certified CMPs update to the newest consent mode version automatically. You can use a CMP that is not on the list, but then you must make sure it sends all four signals yourself.

Google Consent Mode v2 on WordPress

On WordPress, the usual route is a CMP plugin such as Complianz, CookieYes or Cookiebot, with consent mode switched on in its settings. The common mistake is loading Google Analytics twice: once from a plugin and once from a theme setting or Tag Manager. Only one copy should load, after the consent default. If your site was built by several people over the years, a WordPress developer can find every place a tag is added.

Using Google Tag Manager

If your tags live in Google Tag Manager, use your CMP’s Tag Manager template so the default fires on Consent Initialization, before any other tag. Google tags such as GA4 and Google Ads read consent mode on their own. Tags from other vendors need consent checks set in Tag Manager, or they will keep firing.

What you lose and keep: conversion modeling

Advanced mode lets Google fill some of the gaps that declined visitors leave in your reports. It is not automatic for every site. Google Analytics Help lists the behavioral modeling thresholds: the property needs at least 1,000 events a day with analytics_storage denied for at least 7 days, and at least 1,000 daily users with analytics_storage granted on at least 7 of the previous 28 days.

Two cards: 1,000 events a day with consent denied for at least 7 days, and 1,000 users a day with consent granted on 7 of the last 28 days
Both thresholds must be met before GA4 models behavior for declined visitors.

Many small business sites do not reach those numbers, and Google says meeting them still does not guarantee eligibility. So for a smaller site, the main gains from Consent Mode v2 are compliance with Google’s policy and keeping European visitors in your ad audiences, not modeled data. If you are new to GA4, our GA4 guide for beginners explains which reports matter, and UTM parameters keep campaign tracking clean whatever the consent rate.

How to test Google Consent Mode v2

Do not assume the banner works because it appears. Google’s consent debugging guide uses Tag Assistant, and the check takes a few minutes:

Table with four consent types, each showing a switch off under default and on under update
A healthy result in Tag Assistant: every type starts denied and changes to granted after the visitor accepts.
  • Start a session: open Tag Assistant, enter your site address and load the page.
  • Check the default: select the first Consent event and confirm all four types are set before any tag fires. The Consent tab shows them in the On-page Default column.
  • Accept and check the update: accept in your banner, select the latest Consent event and confirm the four types changed. They appear in the On-page Update column.
  • Decline and repeat: start again, decline and confirm the values stay denied and that non-Google marketing tags did not fire.
  • Check Google’s side: in GA4, go to Admin, Data collection and modification, Consent settings. Google says the status can take 48 to 72 hours to refresh. In Google Ads, the consent mode status appears in conversion diagnostics.

If you set region-specific defaults, repeat the test from a location in each region. And test again after any theme, plugin or Tag Manager change, because a new tag added in the wrong place can fire before consent.

Common Consent Mode v2 mistakes

  • A banner with no consent mode behind it. The banner looks fine, but Google never receives a signal.
  • Only two signals. An old setup that sends ad_storage and analytics_storage but not the two version 2 signals.
  • The default fires too late. Tags load first and set cookies before the default is applied.
  • Other tracking scripts ignore the choice. Consent mode only changes Google tags. Meta, LinkedIn and other pixels must be blocked separately.
  • Conflicting ad signals. Granting ad_user_data but not ad_personalization, or the other way round, switches personalization off.
  • No record of consent. Google’s policy asks you to keep records of consent, and most CMPs store them for you once it is turned on.

A clear, readable cookie banner also matters for visitors who use assistive technology. If you are reviewing your banner design, our WCAG 2.2 guide covers contrast, focus and keyboard access, and our website accessibility team can check it for you.

Want Consent Mode v2 set up and tested?

We scan every cookie and tag on your site, set up your CMP, connect Google Consent Mode v2 for GA4 and Google Ads and test it on your live site.

See our cookie consent implementation →

Frequently asked questions

What is the difference between Consent Mode v1 and v2?

Version 1 sent two signals, ad_storage and analytics_storage, which control cookies. Version 2 adds ad_user_data, for sending user data to Google for advertising, and ad_personalization, for personalized ads and remarketing. Google uses the two newer signals for visitors in the EEA, the UK and Switzerland.

Is Google Consent Mode v2 mandatory?

It is required by Google, not by a single law, for sites that use Google Ads or GA4 advertising features with visitors in the EEA, the UK and Switzerland. Without the signals, GA4 leaves EEA users out of audiences shared with ads, and personalized ads and remarketing need consent. Privacy laws such as GDPR set the consent rules themselves.

Should I use basic or advanced consent mode?

Basic mode is simpler and sends nothing to Google until the visitor agrees. Advanced mode loads tags with consent denied and sends cookieless pings, which allows better conversion modeling. Larger sites gain more from advanced mode. Decide with your privacy adviser, because tags load before the visitor chooses.

Does Consent Mode v2 make my website GDPR compliant?

No. Consent mode only passes the visitor’s choice to Google tags. Compliance also depends on your banner, your privacy policy, blocking other trackers and keeping consent records. A lawyer should approve the policy wording. Consent mode is one technical part of the setup.

How do I check if Consent Mode v2 is working?

Use Tag Assistant. Load your site, check that the first Consent event sets all four types, accept in the banner and confirm the update, then repeat with decline. In GA4, open Admin, Data collection and modification, Consent settings, and allow 48 to 72 hours for the status to refresh.

Free website audit
Not sure where your website stands?

We will review your website and show you exactly what is holding it back.

Search visibility review
Rankings and traffic, page by page
Pages that underperform
The URLs that should bring in more
Content and speed issues
What is holding pages back
What to fix first
A clear list in priority order

Final thoughts

Google Consent Mode v2 is a small piece of code with a big job. It keeps your Google Ads and GA4 working for European visitors, respects the choice every visitor makes and gives Google a fair signal to model from. Set the default before any tag, send all four signals, choose your mode on purpose and test it in Tag Assistant. If you run Google Ads and want help with the campaigns as well as the tracking, see our PPC management service, or ask us to handle the full Google Consent Mode v2 implementation for you.

Independent reviews
Recognized on the platforms clients trust
GoodFirms Top Web Designing Company badge
Clutch Top Webflow Development Phoenix 2026 badge
UpCity Top Digital Agency featured badge
BusinessFirms verified agency badge
Digital Roots Media logo mark
Written by

SEO Strategist at Digital Roots Media, 8+ years in SEO. Michael plans SEO strategy for the businesses we work with and leads this blog, working with the DRM SEO team to track every confirmed Google update and turn it into clear next steps.

Is your website holding you back?

Get a free website audit. We will show you what is working, what is not and what to fix first.

Keep Reading

Related Articles

More on this topic from our team.

Illustration of a gold-framed knowledge panel for a sample company on a gallery wall
AI, SEO

Google Knowledge Panel for Businesses: How It Really Works

How Google knowledge panels are built, how they differ from a Business Profile, what a business can influence and how to claim and edit a panel.
Illustration of a retro scoreboard showing a lead score of 85, fit A and activity 1
Marketing

Lead Scoring for Small B2B Teams: A Simple Model That Works

A simple lead scoring model for small B2B teams: fit and engagement scores, example points, a grid sales can act on and how to review it.
Illustration of a town map with three red location pins
SEO

Service Area Pages vs Doorway Pages: Local SEO Without the Risk

How to build service area pages that rank and help local customers, without creating the doorway pages Google's spam policies warn about.

Free Website Audit

Rather Have Experts Do It for You?

Reading is a great start. Share your website and email, and our team will show you what is holding it back, with a free audit and a fixed-price proposal. No obligation.

We never share your details. No spam.