Google Consent Mode v2 implementation comes down to getting the order right. Set the default state first (everything denied), then load your Google tags, and only update the signals once the visitor has made a choice. This guide explains how to implement Consent Mode v2 with a consent management platform (CMP), Google Tag Manager, GA4 and Google Ads, and where EU and UK rules add requirements of their own.
Last checked: 4 November 2026. This guide gives practical implementation guidance and is not legal advice. Neither Consent Mode v2 nor a CMP guarantees compliance on its own. Your banner wording, privacy information, vendors, legal basis and technical configuration all need to be reviewed as well.
What is Consent Mode v2?
Consent Mode v2 passes the visitor's choice to Google tags through four signals:
ad_storage: storage used for advertising;analytics_storage: storage used for analytics;ad_user_data: sending user data to Google for advertising;ad_personalization: personalised advertising, such as remarketing.
A CMP collects the choice; Consent Mode is only the link to Google. A visible cookie banner is therefore not enough: the behaviour of your tags before and after the choice has to be right too.
Is Consent Mode v2 mandatory?
Consent Mode v2 is not required by law; Google requires it from advertisers who use its ad features for visitors in the EEA, the UK and Switzerland. Since March 2024 Google has enforced its EU user consent policy more strictly: advertisers who use Google Ads, remarketing or conversion measurement for visitors in the European Economic Area must collect consent and pass consent signals to Google, and Google lists the UK and Switzerland as regions where consent is required as well (Google Ads Help). When ad_user_data or ad_personalization is denied or missing, Google treats it as not granted, and does not use the data for personalised advertising or remarketing (consent mode reference). The legal duty to ask for consent comes from the ePrivacy rules and the GDPR (in the UK, PECR and the UK GDPR), not from Consent Mode.
Basic or advanced mode?
- Basic mode: Google tags do not load until the visitor interacts with the banner. If the visitor does not consent, the measurement tags never fire (loading the GTM container itself is still a request to Google).
- Advanced mode: Google tags load straight away with the default state
deniedand, before consent, send cookieless pings to Google, which Google uses for conversion modelling. When ad consent is denied,ads_data_redactionstrips advertising identifiers from the requests, whileurl_passthroughkeeps them in the URL as visitors move between pages of your site. They are independent settings and both have privacy consequences.
Even without cookies, these pings are network requests that reveal the visitor's IP address, together with information such as the user agent, referrer and a timestamp (Google's consent mode overview). That can be processing of personal data under the GDPR, for which you need a legal basis. Neither the EDPB nor the ICO has published guidance on advanced mode by name, but the EDPB's guidance (see below) treats tracking pixels and IP-based tracking as potentially covered by the cookie consent rule. If you want to avoid risk, start with basic mode and have advanced mode reviewed by a lawyer first.
What EU and UK rules require
EU: ePrivacy Directive article 5(3) and the GDPR
Article 5(3) of the ePrivacy Directive allows storing or accessing information on a user's device only with consent, after clear and comprehensive information. The only exceptions are storage or access needed purely to transmit a communication, or strictly necessary to provide a service the user explicitly asked for. Each member state has implemented this in national law, and the GDPR applies as soon as cookies or similar technologies process personal data, which is almost always the case with tracking. Analytics and advertising cookies are not strictly necessary, so analytics_storage and the three ad signals should default to denied.
The European Data Protection Board's Guidelines 2/2023 on the technical scope of article 5(3) (final version adopted 7 October 2024) state that tracking pixels and tracking links fall under article 5(3), and that collecting IP addresses to track users can fall under it too, unless the entity can ensure the IP address does not originate from the user's device. The guidelines do not mention Consent Mode by name, but they are the closest regulator text to what advanced-mode pings do.
What EU regulators look for in a banner
The EDPB's Cookie Banner Taskforce report of 18 January 2023 records what national authorities agreed on:
- a vast majority considered a banner that offers accept but no reject option on the same layer an infringement;
- pre-ticked boxes, including on the second layer, do not give valid consent;
- a reject "link" hidden in a paragraph of text, or placed outside the banner, without enough visual support, does not give valid consent;
- button colours and contrast must not be obviously misleading;
- withdrawing consent must be as easy as giving it, for example through a permanently visible icon or link.
Enforcement is real. On 1 September 2025 the French regulator CNIL fined SHEIN's Irish subsidiary 150 million euros: advertising cookies were placed as soon as visitors arrived, before any choice, and new cookies were still set after visitors clicked "Refuse all".
UK: PECR regulation 6, the ICO and the Data (Use and Access) Act 2025
In the UK, regulation 6 of PECR sets the same basic rule. It was amended with effect from 5 February 2026 by the Data (Use and Access) Act 2025. The new wording explicitly covers "collecting or monitoring information automatically emitted by the terminal equipment", and the exceptions now sit in Schedule A1.
Schedule A1 includes a new exemption for analytics: consent is not needed where the sole purpose is to collect information for statistical purposes about how your service or website is used, with a view to improving it. The conditions are strict. The information may only be shared with others who help you make those improvements, users must get clear and comprehensive information, and they must have a simple, free way to object. The exemption does not cover information automatically emitted by the device, and it does not cover advertising. Whether your GA4 setup qualifies needs a careful assessment, especially when GA4 is linked to Google Ads. Until you have done that assessment, keep analytics_storage on denied by default for UK visitors as well. The ICO says its cookie guidance is being revised; the ICO is also consulting on new guidance on storage and access technologies.
The ICO has been actively checking banners:
- 23 January 2025: the ICO announced it had assessed the top 200 UK websites, raised concerns with 134 of them and would extend the work to the top 1,000. It also published guidance on "consent or pay" models.
- 4 December 2025: the ICO reported that 979 of the top 1,000 websites met its checks. 564 of them had improved only after ICO letters, investigations or, in 17 cases, preliminary enforcement notices. The checks were whether advertising cookies were set before a choice, whether rejecting was as easy as accepting, and whether cookies were set without consent.
Consent Mode does not check the banner itself. But if the banner does not meet these rules, the granted state you send to Google is not valid consent either.
How to implement Consent Mode v2 in 6 steps
-
Inventory your tags. GA4, Google Ads, remarketing, the conversion linker, embedded media, ecommerce plugins and custom scripts.
-
Sort them into categories. Necessary, analytics, marketing and preferences. Map analytics to
analytics_storageand marketing toad_storage,ad_user_dataandad_personalization. -
Set the default state before any Google tag. All four signals on
denied. In code it looks like this:<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>wait_for_updategives the CMP 500 ms to pass on a previously saved choice before the tags fire. A CMP with built-in Consent Mode sets this block for you. In CookiePilot, the first synchronous script you place at the top of the<head>does it. -
Update the signals after the choice. After a rejection they stay
denied; after acceptance only the chosen categories switch tograntedviagtag('consent', 'update', …). -
Set consent settings per tag in GTM. Use the Consent Initialization – All Pages trigger for the CMP and check which consent each tag requires. The guide to Consent Mode v2 in Google Tag Manager walks through this step by step; see also Google's help page on consent mode in Tag Manager.
-
Test and record. Open your site in Tag Assistant, select an event and open the Consent tab. It shows the default state (On-page Default) and the state after the choice (On-page Update) for each signal. Then work through the checklist below.
Pre-launch checklist
Test in a private window with no earlier cookies:
- The banner shows Reject next to Accept on the first layer, equally visible.
- No box or toggle is switched on in advance.
- In Tag Assistant all four signals are
deniedbefore the choice, and the default state comes before the first Google tag. - After Reject: no
_gaor_gclcookies. In basic mode no Google tags fire (only the GTM container itself loads); in advanced mode only cookieless pings withgcs=G100, and agcdvalue that also showsad_user_dataandad_personalizationas denied. - After accepting analytics only:
analytics_storageisgranted, the three ad signals staydenied. - After Accept: all chosen signals switch to
grantedand GA4 and Google Ads measure in full. - Visitors can change their choice later through a permanent button or link, and withdrawal takes effect immediately.
- You have recorded the banner text, categories, tags and test results with a date.
Repeat this test after every new plugin, campaign or embedded service.
Setting it up by platform
- WordPress and WooCommerce: the CookiePilot plugin sets the default state and the banner for you. See the WordPress integration and the WooCommerce integration.
- PrestaShop: use the CookiePilot module; see the PrestaShop integration.
- Shopify: CookiePilot has no Shopify integration. Use Shopify's built-in consent management or a CMP app. In Shopify's privacy settings, set the EU, EEA and UK regions to "consent required"; otherwise the default state may be
granted. Then check in Tag Assistant that the Google & YouTube app passesdeniedas the default. - Other platforms (Wix, Squarespace, Webflow and similar): CookiePilot has no ready-made integration for these. Check whether your platform lets you add your own code to the
<head>or a GTM container, and place the CMP as the first script, before any other tracking. - Any site with GTM: see the Google Tag Manager integration.
CookiePilot's ready-made integrations cover WordPress, WooCommerce, PrestaShop and Google Tag Manager.
Common mistakes
Tags load before the default state
If the GA4 or Ads tag sits higher in the <head> than the default state, the first hit is sent without a consent state. Always put the CMP or the default block at the top.
The reject button is on the second layer
Consent Mode still works technically, but EU and UK regulators treat this as a problem, and the same goes for rejecting through an inconspicuous text link. Put Reject and Accept side by side as equal buttons; in CookiePilot, do not choose the "link" style for the reject button.
Not all four signals are included
Older implementations only know ad_storage and analytics_storage. Without ad_user_data and ad_personalization, Google treats ad consent as not granted and limits personalised advertising and remarketing.
Only "Accept all" is tested
Also test rejection, partial consent and withdrawing a choice later.
FAQ
Does Consent Mode v2 make my website compliant?
No. Consent Mode passes a choice on to Google. Whether that choice is valid depends on your banner, information, vendors and implementation. Regulators mainly look at the banner and at what is set before and after the choice.
Is Consent Mode v2 mandatory?
Not by law. Google requires consent signals from advertisers who use Google Ads, remarketing or conversion measurement for visitors in the EEA, the UK and Switzerland. Without them, personalised advertising and remarketing are limited.
Do I still need a cookie banner?
Yes, as soon as you use tracking, advertising or analytics cookies that need consent. The checklist on whether you need a cookie banner and the guide to GDPR cookie banners help with the inventory.
Does Consent Mode v2 have to be set up through GTM?
No. You can also use gtag.js directly in the page or your CMP's plugin. What matters is that the default state and the updates are processed in the right order.
What does a CMP with Consent Mode v2 cost?
It varies by provider. CookiePilot has a free Starter plan for up to 10,000 pageviews a month, and paid plans with no pageview limit; see pricing.
Help with Consent Mode v2
Map your tags and categories, set the default state to denied and work through the checklist in a private window. Need help with the setup? Use the chat in the CookiePilot dashboard and we will help you with installation and testing. To see how CookiePilot handles the default state, the reject button and the updates, read the documentation or the feature overview.
Written by
Marcin
The CookiePilot team writes about GDPR, cookies and Consent Mode v2 based on day-to-day work with consent banner rollouts.
