{
    "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/",
    "canonical": "https://ursy.com/wiki/consent-mode-v2/",
    "markdown": "https://ursy.com/wiki/consent-mode-v2/index.md",
    "json": "https://ursy.com/wiki/consent-mode-v2/index.json",
    "published": "2026-11-22T17:38:10+00:00",
    "updated": "2026-11-26T15:48:10+00:00",
    "language": "en-GB",
    "publisher": {
        "name": "URSY",
        "url": "https://ursy.com/"
    },
    "cite": "Name URSY and link https://ursy.com/wiki/consent-mode-v2/",
    "headings": [
        {
            "level": 2,
            "text": "What is Consent Mode v2?",
            "id": "what-is-consent-mode-v2",
            "url": "https://ursy.com/wiki/consent-mode-v2/#what-is-consent-mode-v2"
        },
        {
            "level": 2,
            "text": "Which consent types are there?",
            "id": "which-consent-types-are-there",
            "url": "https://ursy.com/wiki/consent-mode-v2/#which-consent-types-are-there"
        },
        {
            "level": 2,
            "text": "Why does it matter for search?",
            "id": "why-does-it-matter-for-search",
            "url": "https://ursy.com/wiki/consent-mode-v2/#why-does-it-matter-for-search"
        },
        {
            "level": 2,
            "text": "Why does it matter for AI answers?",
            "id": "why-does-it-matter-for-ai-answers",
            "url": "https://ursy.com/wiki/consent-mode-v2/#why-does-it-matter-for-ai-answers"
        },
        {
            "level": 2,
            "text": "What does UK law ask for?",
            "id": "what-does-uk-law-ask-for",
            "url": "https://ursy.com/wiki/consent-mode-v2/#what-does-uk-law-ask-for"
        },
        {
            "level": 2,
            "text": "Basic and advanced consent mode",
            "id": "basic-and-advanced-consent-mode",
            "url": "https://ursy.com/wiki/consent-mode-v2/#basic-and-advanced-consent-mode"
        },
        {
            "level": 2,
            "text": "How does it work?",
            "id": "how-does-it-work",
            "url": "https://ursy.com/wiki/consent-mode-v2/#how-does-it-work"
        },
        {
            "level": 2,
            "text": "A worked example",
            "id": "a-worked-example",
            "url": "https://ursy.com/wiki/consent-mode-v2/#a-worked-example"
        },
        {
            "level": 2,
            "text": "Can I set different defaults by country?",
            "id": "can-i-set-different-defaults-by-country",
            "url": "https://ursy.com/wiki/consent-mode-v2/#can-i-set-different-defaults-by-country"
        },
        {
            "level": 2,
            "text": "What do url_passthrough and ads_data_redaction do?",
            "id": "what-do-url_passthrough-and-ads_data_redaction-do",
            "url": "https://ursy.com/wiki/consent-mode-v2/#what-do-url_passthrough-and-ads_data_redaction-do"
        },
        {
            "level": 2,
            "text": "Common mistakes",
            "id": "common-mistakes",
            "url": "https://ursy.com/wiki/consent-mode-v2/#common-mistakes"
        },
        {
            "level": 2,
            "text": "How to check it",
            "id": "how-to-check-it",
            "url": "https://ursy.com/wiki/consent-mode-v2/#how-to-check-it"
        },
        {
            "level": 2,
            "text": "What URSY.com counts",
            "id": "what-ursy-counts",
            "url": "https://ursy.com/wiki/consent-mode-v2/#what-ursy-counts"
        },
        {
            "level": 2,
            "text": "Questions",
            "id": "questions",
            "url": "https://ursy.com/wiki/consent-mode-v2/#questions"
        },
        {
            "level": 3,
            "text": "Does consent mode make my cookie banner legal?",
            "id": "does-consent-mode-make-my-cookie-banner-legal",
            "url": "https://ursy.com/wiki/consent-mode-v2/#does-consent-mode-make-my-cookie-banner-legal"
        },
        {
            "level": 3,
            "text": "What is the difference between v1 and v2?",
            "id": "what-is-the-difference-between-v1-and-v2",
            "url": "https://ursy.com/wiki/consent-mode-v2/#what-is-the-difference-between-v1-and-v2"
        },
        {
            "level": 3,
            "text": "Will GA4 still show visits when people refuse?",
            "id": "will-ga4-still-show-visits-when-people-refuse",
            "url": "https://ursy.com/wiki/consent-mode-v2/#will-ga4-still-show-visits-when-people-refuse"
        },
        {
            "level": 3,
            "text": "Does consent mode cover Meta or Microsoft tags?",
            "id": "does-consent-mode-cover-meta-or-microsoft-tags",
            "url": "https://ursy.com/wiki/consent-mode-v2/#does-consent-mode-cover-meta-or-microsoft-tags"
        },
        {
            "level": 3,
            "text": "How long should wait_for_update be?",
            "id": "how-long-should-wait_for_update-be",
            "url": "https://ursy.com/wiki/consent-mode-v2/#how-long-should-wait_for_update-be"
        },
        {
            "level": 2,
            "text": "Related words",
            "id": "related-words",
            "url": "https://ursy.com/wiki/consent-mode-v2/#related-words"
        },
        {
            "level": 2,
            "text": "Sources",
            "id": "sources",
            "url": "https://ursy.com/wiki/consent-mode-v2/#sources"
        }
    ],
    "links": [
        {
            "text": "Google",
            "url": "https://ursy.com/wiki/google/",
            "internal": true
        },
        {
            "text": "cookie",
            "url": "https://ursy.com/wiki/cookie/",
            "internal": true
        },
        {
            "text": "cookie banner",
            "url": "https://ursy.com/wiki/cookie-banner/",
            "internal": true
        },
        {
            "text": "consent mode overview",
            "url": "https://developers.google.com/tag-platform/security/concepts/consent-mode",
            "internal": false
        },
        {
            "text": "setup guide",
            "url": "https://developers.google.com/tag-platform/security/guides/consent",
            "internal": false
        },
        {
            "text": "Tag Manager help",
            "url": "https://support.google.com/tagmanager/answer/14754100",
            "internal": false
        },
        {
            "text": "Analytics help",
            "url": "https://support.google.com/analytics/answer/13802165",
            "internal": false
        },
        {
            "text": "Google Analytics 4",
            "url": "https://ursy.com/wiki/google-analytics-4/",
            "internal": true
        },
        {
            "text": "Search Console and Analytics",
            "url": "https://ursy.com/wiki/search-console-vs-analytics/",
            "internal": true
        },
        {
            "text": "organic traffic",
            "url": "https://ursy.com/wiki/organic-traffic/",
            "internal": true
        },
        {
            "text": "conversion tracking",
            "url": "https://ursy.com/wiki/conversion-tracking/",
            "internal": true
        },
        {
            "text": "attribution",
            "url": "https://ursy.com/wiki/attribution/",
            "internal": true
        },
        {
            "text": "AI crawlers",
            "url": "https://ursy.com/wiki/ai-crawler/",
            "internal": true
        },
        {
            "text": "GPTBot",
            "url": "https://ursy.com/wiki/gptbot/",
            "internal": true
        },
        {
            "text": "ClaudeBot",
            "url": "https://ursy.com/wiki/claudebot/",
            "internal": true
        },
        {
            "text": "ChatGPT",
            "url": "https://ursy.com/wiki/chatgpt/",
            "internal": true
        },
        {
            "text": "Perplexity",
            "url": "https://ursy.com/wiki/perplexity/",
            "internal": true
        },
        {
            "text": "ChatGPT traffic in Google Analytics",
            "url": "https://ursy.com/wiki/chatgpt-traffic-in-google-analytics/",
            "internal": true
        },
        {
            "text": "server logs",
            "url": "https://ursy.com/wiki/server-logs/",
            "internal": true
        },
        {
            "text": "ICO&#8217;s cookie guidance",
            "url": "https://ico.org.uk/for-organisations/direct-marketing-and-privacy-and-electronic-communications/guide-to-pecr/cookies-and-similar-technologies/",
            "internal": false
        },
        {
            "text": "PECR",
            "url": "https://ursy.com/wiki/pecr/",
            "internal": true
        },
        {
            "text": "UK GDPR",
            "url": "https://ursy.com/wiki/uk-gdpr/",
            "internal": true
        },
        {
            "text": "EU user consent policy",
            "url": "https://www.google.com/about/company/user-consent-policy/",
            "internal": false
        },
        {
            "text": "Consent Mode v2 for UK websites",
            "url": "https://ursy.com/wiki/consent-mode-v2-for-uk-websites/",
            "internal": true
        },
        {
            "text": "observed vs inferred data",
            "url": "https://ursy.com/wiki/observed-vs-inferred-data/",
            "internal": true
        },
        {
            "text": "first-party cookie",
            "url": "https://ursy.com/wiki/first-party-cookies/",
            "internal": true
        },
        {
            "text": "landing page",
            "url": "https://ursy.com/wiki/landing-page/",
            "internal": true
        },
        {
            "text": "session",
            "url": "https://ursy.com/wiki/session/",
            "internal": true
        },
        {
            "text": "URL parameters",
            "url": "https://ursy.com/wiki/url-parameter/",
            "internal": true
        },
        {
            "text": "duplicate",
            "url": "https://ursy.com/wiki/duplicate-content/",
            "internal": true
        },
        {
            "text": "canonical tag",
            "url": "https://ursy.com/wiki/canonical-tag/",
            "internal": true
        },
        {
            "text": "debugging guide",
            "url": "https://developers.google.com/tag-platform/security/guides/consent-debugging",
            "internal": false
        },
        {
            "text": "HTML",
            "url": "https://ursy.com/wiki/html/",
            "internal": true
        },
        {
            "text": "Microsoft Clarity",
            "url": "https://ursy.com/wiki/microsoft-clarity/",
            "internal": true
        },
        {
            "text": "why analytics numbers are low",
            "url": "https://ursy.com/wiki/why-analytics-numbers-are-low/",
            "internal": true
        },
        {
            "text": "Cookie Checker",
            "url": "https://ursy.com/cookie-checker/",
            "internal": true
        },
        {
            "text": "Tracking Checker",
            "url": "https://ursy.com/tracking-checker/",
            "internal": true
        },
        {
            "text": "cookieless analytics",
            "url": "https://ursy.com/wiki/cookieless-analytics/",
            "internal": true
        },
        {
            "text": "server-side tracking",
            "url": "https://ursy.com/wiki/server-side-tracking/",
            "internal": true
        },
        {
            "text": "Tech Stack Checker",
            "url": "https://ursy.com/tech-stack-checker/",
            "internal": true
        },
        {
            "text": "HTTP Header Checker",
            "url": "https://ursy.com/http-header-checker/",
            "internal": true
        },
        {
            "text": "UK Shop Compliance Checker",
            "url": "https://ursy.com/uk-shop-compliance-checker/",
            "internal": true
        },
        {
            "text": "what a UK business website must show by law",
            "url": "https://ursy.com/wiki/what-must-a-uk-business-website-show-by-law/",
            "internal": true
        },
        {
            "text": "Canonical Tag Checker",
            "url": "https://ursy.com/canonical-checker/",
            "internal": true
        },
        {
            "text": "indexability checker",
            "url": "https://ursy.com/indexability-checker/",
            "internal": true
        },
        {
            "text": "UTM builder",
            "url": "https://ursy.com/webmaster-tools/utm-builder/",
            "internal": true
        },
        {
            "text": "UTM parameters",
            "url": "https://ursy.com/wiki/utm-parameters/",
            "internal": true
        },
        {
            "text": "JavaScript SEO Checker",
            "url": "https://ursy.com/javascript-seo-checker/",
            "internal": true
        },
        {
            "text": "bots",
            "url": "https://ursy.com/wiki/bot-web-robot/",
            "internal": true
        },
        {
            "text": "Compare Two Websites",
            "url": "https://ursy.com/compare-websites/",
            "internal": true
        },
        {
            "text": "SEO Audit",
            "url": "https://ursy.com/seo-audit/",
            "internal": true
        },
        {
            "text": "cookie-free analytics",
            "url": "https://ursy.com/pro/cookie-free-analytics/",
            "internal": true
        },
        {
            "text": "measurement integrity",
            "url": "https://ursy.com/pro/measurement-integrity/",
            "internal": true
        },
        {
            "text": "UK shop compliance monitor",
            "url": "https://ursy.com/pro/uk-shop-compliance-monitor/",
            "internal": true
        },
        {
            "text": "pricing",
            "url": "https://ursy.com/pricing/",
            "internal": true
        },
        {
            "text": "IP addresses",
            "url": "https://ursy.com/wiki/ip-address/",
            "internal": true
        },
        {
            "text": "methodology",
            "url": "https://ursy.com/methodology/",
            "internal": true
        }
    ],
    "words": 1801,
    "text": "Consent Mode v2 is Google’s way for a website to pass each visitor’s 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 does that, and consent mode carries the answer to the tags. What is Consent Mode v2? Google’s consent mode overview 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? 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 works with the first four. Google’s Tag Manager help 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 adds that both ad_user_data and ad_personalization must be granted for personalised advertising. 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 can miss many of the visits it should see, and the gap between Search Console and Analytics grows. It can also fail the other way: tags that set cookies before anyone agreed. Your organic traffic report, your conversion tracking and your attribution are only as good as this wiring. Why does it matter for AI answers? AI crawlers such as GPTBot and ClaudeBot do not click banners or run Google’s tags, so consent mode never sees them, granted or denied. People sent by ChatGPT or 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. Counting it needs a second source, such as your server logs. What does UK law ask for? The ICO’s cookie guidance 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, with consent judged by the UK GDPR standard. Google’s EU user consent policy covers end users in the EEA, the UK and Switzerland. More in Consent Mode v2 for UK websites. 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. 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, so the right state applies on the next page. 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: 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? 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? They help when cookies are refused. url_passthrough passes ad click and 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 can create duplicate addresses, so keep each page’s canonical tag right. Common mistakes Setting the default after a Google tag has fired. Google’s debugging guide 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 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 or social pixels, need their own controls. Reading modelled numbers as counts. They explain why analytics numbers are low; they do not replace the missing visits. How to check it Run the page through our 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. List every tracker with the 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 and server-side tracking for other routes. See which consent tool and analytics a site runs with the Tech Stack Checker, and any Set-Cookie line the server sends with the HTTP Header Checker. 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. Check the legal side with the 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. 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 and the indexability checker. Build clean campaign links with the UTM builder; see UTM parameters. Check the page still reads well to machines that never run your banner: the JavaScript SEO Checker shows what bots that don’t run JavaScript miss. Set your setup beside a rival’s with Compare Two Websites, or check many pages at once with the 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. Over time, cookie-free analytics, measurement integrity (when did counting change?) and the UK shop compliance monitor are in URSY Pro, opening in stages. See pricing. What URSY.com 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. 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 page. Questions 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? 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? 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? 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? Long enough for your banner to load. Google’s own example uses 500 milliseconds. Related words Consent Mode v2 for UK websites: what it is and what the law says Cookie banner PECR UK GDPR First-party cookies Cookieless analytics Google Analytics 4 (GA4) Server-side tracking Conversion tracking Sources Google for Developers: Set up consent mode on websites, checked 24 November 2026 Google for Developers: Consent mode overview, checked 24 November 2026 Google for Developers: Verify consent mode works, checked 24 November 2026 Tag Manager Help: Mapping ad_storage to ad_user_data, checked 24 November 2026 Google Analytics Help: Set up and manage consent, checked 24 November 2026 Google: EU user consent policy, checked 24 November 2026 ICO: Cookies and similar technologies, checked 24 November 2026 Updated 24 November 2026 by URSY.com.",
    "source": "https://ursy.com/wiki/consent-mode-v2/"
}