---
title: "Consent Mode v2"
description: "Google's way for a website to pass each visitor's consent choice to Google's tags. Version 2 added two advertising signals in November 2023."
url: https://ursy.com/wiki/consent-mode-v2/
updated: 2026-11-26T15:48:10+00:00
publisher: URSY (https://ursy.com/)
cite: Name URSY and link https://ursy.com/wiki/consent-mode-v2/
---

# Consent Mode v2

> Google's way for a website to pass each visitor's consent choice to Google's tags. Version 2 added two advertising signals in November 2023.

**Consent Mode v2 is [Google](https://ursy.com/wiki/google/)’s way for a website to pass each visitor’s [cookie](https://ursy.com/wiki/cookie/) choice to Google’s tags, so the tags change how they behave.** Google introduced version 2 in November 2023. It added two advertising signals, `ad_user_data` and `ad_personalization`. Consent mode does not ask the question: your [cookie banner](https://ursy.com/wiki/cookie-banner/) does that, and consent mode carries the answer to the tags.

## What is Consent Mode v2? {#what-is-consent-mode-v2}

Google’s [consent mode overview](https://developers.google.com/tag-platform/security/concepts/consent-mode) says it lets developers “adjust tag and app SDK behavior based on user consent choices”. In plain words: the banner asks, the visitor answers, and consent mode tells Google Analytics, Google Ads and other Google tags what they may do. Each choice is a consent type, set to `granted` or `denied`. Version 2 is the same system with two more advertising types.

## Which consent types are there? {#which-consent-types-are-there}

| Consent type | What Google says it covers |
| --- | --- |
| `ad_storage` | Storage, such as cookies, related to advertising |
| `ad_user_data` | Sending user data to Google for online advertising (new in v2) |
| `ad_personalization` | Personalised advertising (new in v2) |
| `analytics_storage` | Storage related to analytics, for example visit duration |
| `functionality_storage` | Storage that supports how the site works, for example language settings |
| `personalization_storage` | Personalisation, for example video recommendations |
| `security_storage` | Security, such as sign-in, fraud prevention and other protection |

Google’s [setup guide](https://developers.google.com/tag-platform/security/guides/consent) works with the first four. Google’s [Tag Manager help](https://support.google.com/tagmanager/answer/14754100) says that from March 2024 the states of `ad_storage` are mapped to `ad_user_data` automatically for sites still on version 1. Its [Analytics help](https://support.google.com/analytics/answer/13802165) adds that both `ad_user_data` and `ad_personalization` must be granted for personalised advertising.

## Why does it matter for search? {#why-does-it-matter-for-search}

Consent mode is about measuring search, not ranking in it. If the banner and the tags disagree, [Google Analytics 4](https://ursy.com/wiki/google-analytics-4/) can miss many of the visits it should see, and the gap between [Search Console and Analytics](https://ursy.com/wiki/search-console-vs-analytics/) grows. It can also fail the other way: tags that set cookies before anyone agreed. Your [organic traffic](https://ursy.com/wiki/organic-traffic/) report, your [conversion tracking](https://ursy.com/wiki/conversion-tracking/) and your [attribution](https://ursy.com/wiki/attribution/) are only as good as this wiring.

## Why does it matter for AI answers? {#why-does-it-matter-for-ai-answers}

[AI crawlers](https://ursy.com/wiki/ai-crawler/) such as [GPTBot](https://ursy.com/wiki/gptbot/) and [ClaudeBot](https://ursy.com/wiki/claudebot/) do not click banners or run Google’s tags, so consent mode never sees them, granted or denied. People sent by [ChatGPT](https://ursy.com/wiki/chatgpt/) or [Perplexity](https://ursy.com/wiki/perplexity/) are counted only if their browser runs the tag, and in full only if they accept. So the AI share of your visits is under-counted in browser analytics. See [ChatGPT traffic in Google Analytics](https://ursy.com/wiki/chatgpt-traffic-in-google-analytics/). Counting it needs a second source, such as your [server logs](https://ursy.com/wiki/server-logs/).

## What does UK law ask for? {#what-does-uk-law-ask-for}

The [ICO’s cookie guidance](https://ico.org.uk/for-organisations/direct-marketing-and-privacy-and-electronic-communications/guide-to-pecr/cookies-and-similar-technologies/) says you must tell people if you set cookies and clearly explain what they do and why. Consent must be actively and clearly given; carrying on using a site does not count. Cookies strictly necessary for a service the visitor asked for are generally exempt. These rules come from [PECR](https://ursy.com/wiki/pecr/), with consent judged by the [UK GDPR](https://ursy.com/wiki/uk-gdpr/) standard. Google’s [EU user consent policy](https://www.google.com/about/company/user-consent-policy/) covers end users in the EEA, the UK and Switzerland. More in [Consent Mode v2 for UK websites](https://ursy.com/wiki/consent-mode-v2-for-uk-websites/).

## Basic and advanced consent mode {#basic-and-advanced-consent-mode}

|  | Basic | Advanced |
| --- | --- | --- |
| Before the visitor chooses | Google tags do not load | Google tags load, with consent set to denied unless you set other defaults |
| If consent is refused | No data goes to Google, not even the consent status | Tags send measurements without cookies |
| Conversion modelling in Google Ads | Based on a general model | A model specific to the advertiser |

Google’s Analytics help says the data in the cookieless ping is used for behavioural and conversion modelling “to fill the gaps in your data”. Modelled figures are estimates, not counts. Keep them apart in your head: see [observed vs inferred data](https://ursy.com/wiki/observed-vs-inferred-data/).

## How does it work? {#how-does-it-work}

Two commands do the work. The `default` command sets each type before anything else runs. The `update` command changes them when the visitor chooses. Google says the default must run on every page before any command that sends measurement data, such as `config` or `event`: “If your consent code is called out of order, consent defaults won’t work.” If the banner loads slowly, a `wait_for_update` value in milliseconds tells the tags how long to wait. Google’s example allows 500.

Consent mode does not save the choice. Google says to update the consent status as soon as the visitor uses your banner, and to store the answer yourself, for example in a [first-party cookie](https://ursy.com/wiki/first-party-cookies/), so the right state applies on the next page.

## A worked example {#a-worked-example}

A bike shop’s site sets every type to denied before anything else runs. Google’s documentation shows the command like this:

```
gtag('consent', 'default', {
  'ad_storage': 'denied',
  'ad_user_data': 'denied',
  'ad_personalization': 'denied',
  'analytics_storage': 'denied'
});
```

When a visitor accepts on the banner, the consent tool sends an update that switches the four types to granted:

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

The shop then tests three cases on one [landing page](https://ursy.com/wiki/landing-page/):

| Case | What the shop expects (advanced mode) |
| --- | --- |
| Page opens, no choice yet | Tags load, all four types denied, no advertising or analytics cookies |
| Visitor accepts | All four types granted, Analytics cookies set, the choice saved for the next page |
| Visitor refuses | All four stay denied; tags send cookieless measurements only |

## Can I set different defaults by country? {#can-i-set-different-defaults-by-country}

Yes. Add a `region` parameter with ISO 3166-2 codes. Google’s example denies `analytics_storage` for `ES` and `US-AK`, while `ad_storage` is denied for everyone. A default without a region applies to every visitor not covered by another region command. The more specific region wins, so `US-CA` beats `US`. Test it by changing your simulated location in Chrome, as Google suggests.

## What do url_passthrough and ads_data_redaction do? {#what-do-url_passthrough-and-ads_data_redaction-do}

They help when cookies are refused. `url_passthrough` passes ad click and [session](https://ursy.com/wiki/session/) details through links, as parameters such as `gclid`, `dclid`, `gclsrc`, `_gl` and `wbraid`. `ads_data_redaction` removes ad click identifiers from Google Ads and Floodlight requests when `ad_storage` is denied. Google says it has no effect when `ad_storage` is granted. Extra [URL parameters](https://ursy.com/wiki/url-parameter/) can create [duplicate](https://ursy.com/wiki/duplicate-content/) addresses, so keep each page’s [canonical tag](https://ursy.com/wiki/canonical-tag/) right.

## Common mistakes {#common-mistakes}

- Setting the default after a Google tag has fired. Google’s [debugging guide](https://developers.google.com/tag-platform/security/guides/consent-debugging) says a tag that fires first may already have read or written a cookie, and Tag Assistant reports it as an error.
- Setting defaults asynchronously. Google says don’t.
- Setting only the two old types, so `ad_user_data` and `ad_personalization` are missing.
- Calling the consent command from a custom [HTML](https://ursy.com/wiki/html/) tag in Tag Manager. Google says to use a consent template tag.
- Treating consent mode as the whole job. It adjusts Google’s tags. Other trackers, such as [Microsoft Clarity](https://ursy.com/wiki/microsoft-clarity/) or social pixels, need their own controls.
- Reading modelled numbers as counts. They explain [why analytics numbers are low](https://ursy.com/wiki/why-analytics-numbers-are-low/); they do not replace the missing visits.

## How to check it {#how-to-check-it}

1. Run the page through our [Cookie Checker](https://ursy.com/cookie-checker/). It shows what a page sets before consent. Any Analytics or advertising cookie before a choice means the default is wrong or late.
2. List every tracker with the [Tracking Checker](https://ursy.com/tracking-checker/), which shows every tracker and pixel a page loads. Anything that is not a Google tag needs its own blocking. See [cookieless analytics](https://ursy.com/wiki/cookieless-analytics/) and [server-side tracking](https://ursy.com/wiki/server-side-tracking/) for other routes.
3. See which consent tool and analytics a site runs with the [Tech Stack Checker](https://ursy.com/tech-stack-checker/), and any `Set-Cookie` line the server sends with the [HTTP Header Checker](https://ursy.com/http-header-checker/).
4. Open Google’s Tag Assistant. Select the earliest Consent event and check the On-page Default column. Accept the banner, then check the On-page Update column. Google says an empty Consent tab means consent mode is not on the page.
5. Check the legal side with the [UK Shop Compliance Checker](https://ursy.com/uk-shop-compliance-checker/), which covers the cookie banner as well as unit prices, returns, company details and delivery. Read [what a UK business website must show by law](https://ursy.com/wiki/what-must-a-uk-business-website-show-by-law/).
6. If you use `url_passthrough`, make sure the extra parameters do not split one page into many. Test a tagged link with the [Canonical Tag Checker](https://ursy.com/canonical-checker/) and the [indexability checker](https://ursy.com/indexability-checker/). Build clean campaign links with the [UTM builder](https://ursy.com/webmaster-tools/utm-builder/); see [UTM parameters](https://ursy.com/wiki/utm-parameters/).
7. Check the page still reads well to machines that never run your banner: the [JavaScript SEO Checker](https://ursy.com/javascript-seo-checker/) shows what [bots](https://ursy.com/wiki/bot-web-robot/) that don’t run JavaScript miss.
8. Set your setup beside a rival’s with [Compare Two Websites](https://ursy.com/compare-websites/), or check many pages at once with the [SEO Audit](https://ursy.com/seo-audit/). Single checks on each tool page: free, no account (2 a day). The full audit: a free account (sign in with an emailed code), 1 a day.
9. Over time, [cookie-free analytics](https://ursy.com/pro/cookie-free-analytics/), [measurement integrity](https://ursy.com/pro/measurement-integrity/) (when did counting change?) and the [UK shop compliance monitor](https://ursy.com/pro/uk-shop-compliance-monitor/) are in URSY Pro, opening in stages. See [pricing](https://ursy.com/pricing/).

## What URSY.com counts {#what-ursy-counts}

Our counter sets no cookies and stores nothing on the device. A person is one daily visitor code: a one-way code that changes every UTC day, so it cannot be turned back. We never fingerprint and never keep full [IP addresses](https://ursy.com/wiki/ip-address/). People who block scripts are not counted, and bots that do not run scripts never make page views; the edge log counts every request, bots included. The full rules are on our [methodology](https://ursy.com/methodology/) page.

## Questions {#questions}

### Does consent mode make my cookie banner legal? {#does-consent-mode-make-my-cookie-banner-legal}

No. It only passes the answer to Google’s tags. The banner must meet the ICO’s rules, and Google says you are responsible for setting the default consent state for each of your measurement products.

### What is the difference between v1 and v2? {#what-is-the-difference-between-v1-and-v2}

Version 2 adds `ad_user_data` and `ad_personalization` to the older `ad_storage` and `analytics_storage`.

### Will GA4 still show visits when people refuse? {#will-ga4-still-show-visits-when-people-refuse}

In basic mode, no: nothing goes to Google. In advanced mode, tags send cookieless measurements that Google uses for modelling.

### Does consent mode cover Meta or Microsoft tags? {#does-consent-mode-cover-meta-or-microsoft-tags}

No. Google describes it as adjusting tag and SDK behaviour for Google’s own tags. Other tools need their own consent settings.

### How long should wait_for_update be? {#how-long-should-wait_for_update-be}

Long enough for your banner to load. Google’s own example uses 500 milliseconds.

## Related words {#related-words}

- [Consent Mode v2 for UK websites: what it is and what the law says](https://ursy.com/wiki/consent-mode-v2-for-uk-websites/)
- [Cookie banner](https://ursy.com/wiki/cookie-banner/)
- [PECR](https://ursy.com/wiki/pecr/)
- [UK GDPR](https://ursy.com/wiki/uk-gdpr/)
- [First-party cookies](https://ursy.com/wiki/first-party-cookies/)
- [Cookieless analytics](https://ursy.com/wiki/cookieless-analytics/)
- [Google Analytics 4 (GA4)](https://ursy.com/wiki/google-analytics-4/)
- [Server-side tracking](https://ursy.com/wiki/server-side-tracking/)
- [Conversion tracking](https://ursy.com/wiki/conversion-tracking/)

## Sources {#sources}

- [Google for Developers: Set up consent mode on websites](https://developers.google.com/tag-platform/security/guides/consent), checked 24 November 2026
- [Google for Developers: Consent mode overview](https://developers.google.com/tag-platform/security/concepts/consent-mode), checked 24 November 2026
- [Google for Developers: Verify consent mode works](https://developers.google.com/tag-platform/security/guides/consent-debugging), checked 24 November 2026
- [Tag Manager Help: Mapping ad_storage to ad_user_data](https://support.google.com/tagmanager/answer/14754100), checked 24 November 2026
- [Google Analytics Help: Set up and manage consent](https://support.google.com/analytics/answer/13802165), checked 24 November 2026
- [Google: EU user consent policy](https://www.google.com/about/company/user-consent-policy/), checked 24 November 2026
- [ICO: Cookies and similar technologies](https://ico.org.uk/for-organisations/direct-marketing-and-privacy-and-electronic-communications/guide-to-pecr/cookies-and-similar-technologies/), checked 24 November 2026

*Updated 24 November 2026 by URSY.com.*
