Home Compliance & Regulations.

Compliance & Regulations.

Marc Austin
By Marc Austin •
2 articles

Google Consent Mode in CookieLet

Google Consent Mode is the way Google's tags — Google Analytics 4, Google Ads, Floodlight — find out whether a visitor has agreed to cookies and tracking. Instead of blocking those tags outright, Consent Mode lets them load and adjust their own behaviour based on the signals your consent banner sends. CookieLet sends those signals for you. Once you switch Consent Mode on, every banner interaction updates Google's tags automatically — you don't need to write any code. Why Consent Mode matters Google requires advertisers and publishers serving traffic in the European Economic Area and the UK to collect and forward consent signals for Google Analytics and Google Ads. Without them, remarketing audiences stop populating, conversion data becomes incomplete, and some Google features stop working for EEA traffic altogether. Consent Mode was extended in November 2023 with two additional signals, commonly called Consent Mode v2. If your current setup only sends ad_storage and analytics_storage, it is out of date. CookieLet sends the full v2 signal set. The consent signals Each signal carries one of two values: granted or denied. - ad_storage — storage related to advertising, such as advertising cookies - ad_user_data — sending user data to Google for advertising purposes (v2) - ad_personalization — using data for personalised advertising, including remarketing (v2) - analytics_storage — storage related to analytics, such as the visit duration cookie - functionality_storage — storage that supports site functionality, such as language preference - personalization_storage — storage related to personalisation, such as recommendations - security_storage — storage related to security, such as authentication and fraud prevention The first four are the ones Google's advertising and analytics products act on. The last three are informational for most sites, but CookieLet sends all seven so your consent record is complete. Basic and Advanced modes Consent Mode can be implemented in two ways. The difference is when Google's tags are allowed to load. Basic Google tags are blocked entirely until the visitor accepts. Nothing reaches Google before consent — not even an anonymous ping. Visitors who decline are simply absent from your reporting, and Google cannot model the gap. Choose Basic if your legal position is that no contact with Google may happen before consent. Advanced Google tags load on every page with all signals set to denied. Before consent they send cookieless pings — no cookies are written, no identifiers are sent. Once the visitor accepts, the signals switch to granted and normal measurement resumes. Because Google receives those anonymous pings, it can model conversions and behaviour for the visitors who declined, which usually recovers a meaningful share of the reporting you would otherwise lose. Which should you pick? Advanced is the more common choice and preserves far more measurement. Basic is the more conservative reading of consent law. This is a decision for your legal or privacy team, not a technical one. How CookieLet maps your cookie categories CookieLet's banner works in cookie categories. Google works in consent signals. CookieLet translates between the two automatically. One category can drive several signals. Accepting Advertisement grants all three advertising signals at once; declining it denies all three. Necessary maps to security_storage and is always granted, because those cookies are required for the site to function and cannot be refused. Turning Consent Mode on 1. In your CookieLet dashboard, select your website, then open Advanced in the left-hand menu. 2. Switch on Google Consent Mode. This enables Basic mode. 3. To use Advanced mode, switch on the Advanced mode option as well. 4. Save your changes. Nothing else is required. The signals begin flowing on your next page load. Consent Mode settings are per website. If you manage several sites in CookieLet, switch it on for each one. What CookieLet does on the page You don't need to write this code — it's here so you can recognise it when debugging. 1. It sets a default before any Google tag runs On every page load, before the Google tag has a chance to fire, CookieLet declares the starting state: gtag('consent', 'default', { 'ad_storage': 'denied', 'ad_user_data': 'denied', 'ad_personalization': 'denied', 'analytics_storage': 'denied', 'functionality_storage': 'denied', 'personalization_storage': 'denied', 'security_storage': 'granted' }); Order is critical. If the default is set after your Google tag has already loaded, it has no effect and your tags behave as though consent was never configured. This is the single most common Consent Mode mistake, and it's why the CookieLet script belongs at the very top of your <head>. 2. It waits briefly for the visitor Because the banner loads asynchronously, CookieLet sends a wait_for_update value alongside the default. Google's tags hold their data for that window — 2000 milliseconds by default — giving the visitor a moment to choose before anything is sent. 3. It sends an update when the visitor decides The moment someone accepts, rejects, or saves a custom selection, CookieLet pushes the new state: gtag('consent', 'update', { 'ad_storage': 'granted', 'ad_user_data': 'granted', 'ad_personalization': 'granted', 'analytics_storage': 'granted' }); The update is sent on the same page where the choice was made, before any navigation. That matters: if the update only arrived after a page reload, Google would lose the events from the original page and your reports would show incomplete sessions. 4. It remembers the choice CookieLet stores the decision in a first-party cookie and re-applies it on every subsequent page, so the visitor isn't asked again and Google's tags start each page in the right state. 5. It handles changes of mind If a visitor reopens the preference centre and withdraws consent, CookieLet sends another update switching the affected signals back to denied. Consent Mode treats this like any other change of state. Region-specific defaults You can apply different starting states to different parts of the world — for example, deny everything by default in the EEA while leaving analytics granted elsewhere. CookieLet's geo-targeting handles this for you when you use a worldwide legislation preset. Regions are identified by ISO 3166-2 codes, such as DE for Germany or US-CA for California. Where two rules overlap, the more specific one wins. If ad_storage is granted for US and denied for US-CA, a visitor in California gets the denied setting. A rule with no region attached covers everyone not matched by a more specific rule. Ads data redaction When ad_storage is denied, Google's tags already stop writing advertising cookies. Ads data redaction goes further: ad click identifiers are stripped from the network requests Google Ads and Floodlight tags send, and that traffic is routed through a domain that doesn't use third-party cookies. It has no effect when ad_storage is granted. Leaving it on is the more privacy-protective configuration and is recommended. URL passthrough When cookies are denied, information about which ad a visitor clicked can't be stored locally, so conversions become harder to attribute. URL passthrough carries that information in the page URL instead of a cookie as the visitor moves through your site. The parameters it may append include gclid, dclid, gclsrc, _gl and wbraid. Turn it on if you run Google Ads. Before you do, check that: - any redirects on your site preserve those query parameters - your analytics tools ignore them when grouping page URLs - your site doesn't use query parameters to control navigation in a way these would disturb If you install CookieLet through Google Tag Manager The GTM template handles Consent Mode the same way, using Tag Manager's own consent APIs rather than raw gtag commands. You set the default state directly in the tag, in the Default Consent Settings table, and Ads Data Redaction and URL Pass Through appear as checkboxes under Other Settings. The tag must fire on the Consent Initialization – All Pages trigger so it runs before every other tag in the container. See our Google Tag Manager installation guide for the full setup. If you use IAB TCF When the IAB Transparency and Consent Framework is enabled on your banner, the three advertising signals — ad_storage, ad_user_data and ad_personalization — are no longer driven by your Advertisement cookie category. They are derived from the TC string instead, following Google's own rules for TCF participation. The remaining four signals continue to follow your cookie categories as normal. Your Advertisement category still governs everything else: blocking non-TCF advertising scripts such as Meta Pixel, LinkedIn Insight and TikTok Pixel, and classifying the cookies those vendors set. Checking that it works With CookieLet Open Advanced in your dashboard and use the consent checker. It reads the live signal state from your site and reports what Google is currently receiving. With Google Tag Assistant 1. In Tag Manager, select Preview and enter your website URL. 2. Open the Consent tab. 3. Before you interact with the banner, every signal except security_storage should read denied in the On-page Default column. 4. Accept cookies, then check the On-page Update column. The signals you consented to should read granted. With your browser console Open the developer console on your site and inspect dataLayer. You should see a consent entry with default before your Google tag entry, and an update entry after you interact with the banner. Common issues Every signal stays denied after I accept - Confirm Consent Mode is switched on in Advanced for this website. - Test in a private window — a stored decision from an earlier visit may be replaying. - If you use GTM, check the CookieLet tag is on the Consent Initialization trigger. The defaults never appear at all Your Google tag is loading before CookieLet. Move the CookieLet script above every Google tag in your <head>, or above the GTM container snippet. Sessions in GA4 look incomplete This happens when consent changes across a page transition rather than on the page where the visitor clicked. CookieLet sends the update on the same page, so if you're seeing this, check whether your site reloads immediately after the banner is dismissed — a reload triggered too quickly can cancel the network request carrying the update. Analytics traffic dropped after enabling Consent Mode Expected, and correct: visitors who decline are no longer measured with cookies. Advanced mode recovers part of that gap through modelling. If the drop is severe, check whether your banner is denying more categories by default than your jurisdiction requires. I'm using ga.js, analytics.js or conversion.js Those legacy tags don't support Consent Mode. Move to gtag.js or Google Tag Manager first. A note on compliance Consent Mode is a measurement feature, not a legal guarantee. Sending the correct signals is necessary for compliance with Google's policies, but it doesn't by itself make your site compliant with GDPR or any other regulation. Your banner configuration, cookie categorisation and privacy notices all form part of that picture. Still need help? Email support@cookielet.com with your website URL and a description of what you're seeing in Tag Assistant, and we'll check the signal flow for you.

Last updated on Sep 14, 2026

IAB TCF: consent for programmatic advertising

The IAB Transparency and Consent Framework (TCF) is the advertising industry's standard for collecting and passing on consent for personalised advertising. If you earn money from programmatic ads — Google AdSense, Google Ad Manager, or any ad exchange — in the EEA, UK or Switzerland, you need a TCF-registered consent banner. CookieLet is one. This article explains what turning TCF on does to your banner, how to configure the three related settings, and what to expect afterwards. Do you need TCF? Turn it on if any of these apply: - You serve ads through Google AdSense, Ad Manager or AdMob to visitors in the EEA, UK or Switzerland. Google requires a certified TCF CMP for this. - You use a header-bidding setup, an SSP, or any ad partner who asks for a "TC string". - An ad partner has told you consent isn't being passed, or your EEA ad revenue dropped after you installed a cookie banner. Leave it off if you don't run programmatic advertising. TCF makes the banner longer and more complex — the first screen alone carries several paragraphs of mandatory wording — and that costs you interaction rate for no benefit if there are no ad vendors to pass consent to. TCF only matters for visitors in the EEA, UK and Switzerland. If your legislation preset is GDPR or Worldwide, it applies to those visitors; US-only banners don't use it. Where the settings are Select the website, open Cookie Banner , and expand the General section. The three TCF-related toggles sit together beneath the geo-targeting options. Available on Pro and above. On lower plans the toggles are visible but locked. Support IAB TCF v2.3 The master switch. Turning it on changes several things at once. What changes on the banner - The message is replaced with the TCF disclosure text. The framework prescribes the wording of the first layer so that every TCF banner tells visitors the same things: that data is stored on their device, what it's used for (the TCF purposes), that it's shared with partners, and that some partners rely on legitimate interest. CookieLet inserts this text and locks it. - A partners link appears. "We and our 1033 partners " — the number is the count of vendors on the Global Vendor List that your banner discloses, and the link opens the full vendor list inside the preference centre. The count is maintained by IAB and updates automatically. - The preference centre gains purposes and vendors. Alongside your cookie categories, visitors can now grant or refuse each TCF purpose, each special feature, and each vendor individually, and can object to legitimate-interest processing. - The banner produces a TC string. A compact encoded record of exactly what the visitor allowed. CookieLet stores it, exposes it through the standard __tcfapi interface on your page, and your ad tags read it from there. What changes in the preference centre (layer 2) Selecting Customise opens a preference centre with three tabs instead of one. The introduction at the top is TCF wording: it tells the visitor they can consent per vendor, that some vendors rely on legitimate interest and may be objected to, and that choices are stored in a cookie named euconsent for up to 730 days. Cookie Categories — your own categories from Cookie Manager, exactly as on a non-TCF banner. Strictly Necessary shows as Always Active ; the rest have toggles. This tab controls which scripts CookieLet blocks on your page. Purposes & Features — the IAB-defined reasons data may be processed, in four groups: - Purposes (11) — the processing purposes that need consent, such as storing information on a device, selecting personalised ads, and measuring ad performance. One toggle grants or refuses all eleven; expand the group to set them individually. - Special Purposes (3) — security, fraud prevention and technical delivery. These are always permitted under TCF and have no toggle. - Features (3) — techniques such as matching data from offline sources. Also no toggle; they're disclosed, not consented to. - Special Features (2) — precise geolocation and device scanning. These require explicit opt-in and have their own toggle. The counts and the text are set by the framework and can't be edited. Vendors — the companies that may receive the visitor's data, in two groups: - Third Party Vendors — every vendor on IAB's Global Vendor List (1033 in the example). Expand the group to see each vendor, its purposes, and whether it relies on consent or legitimate interest. - Google Advertising Products — appears only when Google's Additional Consent Mode is on. Google's ad-tech providers that aren't on the IAB list (713 in the example). Each group has a master toggle; the tab's count in the header is the two groups combined. As the note on the tab says, vendor consent follows the category toggles by default and can be overridden individually. The three buttons at the foot — Reject All , Save My Preferences , Accept All — apply to all three tabs at once. What becomes non-editable A notice appears at the top of the editor when TCF is on. Most of the text on the first and second layers is now fixed by the framework and can't be changed: - The banner Message — shows as locked in the Languages editor. - The purpose names and descriptions in the preference centre. - The legitimate-interest wording. You can still edit the banner title, the three button labels, the preference centre title, your own cookie category names and descriptions, the policy links, and every colour and layout setting. Translations of the locked text are supplied by IAB in each language you've added. Why it's locked. IAB audits registered CMPs against its policies, and non-compliant wording can cost a CMP its registration. If CookieLet let you edit the disclosure, your banner would no longer be a valid TCF banner and Google would stop treating its consent signals as valid. The lock protects your ad revenue. Required button layout TCF policy requires that rejecting is as easy as accepting on the first layer. CookieLet's banner shows Accept All , Reject All and Customise together on layer 1; keep all three visible and don't style Reject All as noticeably less prominent than Accept All. Support Google's Additional Consent Mode Available once TCF is on. Google works with a large number of ad-tech providers who aren't registered on IAB's Global Vendor List. Google's Additional Consent (AC) mode extends the consent signal to cover them: the banner discloses them alongside the IAB vendors, and the visitor's decision is encoded as an AC string that's passed to Google with the TC string. Turn it on if you use Google AdSense, Ad Manager or AdMob. Google recommends it for all publishers monetising with Google products, and without it some Google demand won't be eligible to bid on your EEA inventory. When it's on, the partner count on your banner increases — in the example above, from 1033 to 1745 — because Google's providers are now included in the disclosure. Enable Google's Advertiser Consent Mode Available once TCF is on. This links TCF to Google Consent Mode, so Google's advertising tags — Google Ads, Floodlight, and the advertising half of GA4 — take their consent signals from the TC string rather than from your cookie categories. With it on, the three advertising signals (ad_storage, ad_user_data and ad_personalization) are set to granted only when the visitor has consented to the relevant TCF purposes and to Google as a vendor. The other Consent Mode signals — analytics, functionality, personalisation, security — continue to follow your cookie categories. Turn it on if you run Google Ads conversion tracking or remarketing alongside TCF. It's the configuration Google expects from a TCF site, and it prevents a mismatch where your cookie category says yes but the TC string says no. Your Advertisement cookie category still governs everything that isn't a Google ad tag: it blocks Meta Pixel, LinkedIn Insight, TikTok Pixel and similar non-TCF scripts before consent exactly as before. See the Google Consent Mode article for the full picture. Recommended configuration - No programmatic ads — all three off. - Non-Google ad partners only — TCF on; the two Google toggles off. - Google AdSense / Ad Manager — TCF on, Additional Consent on, Advertiser Consent Mode on if you also run Google Ads. - Google Ads conversions, no display advertising — you don't need TCF. Use Google Consent Mode on its own. Turning it on — step by step 1. Open Cookie Banner → General and switch on Support IAB TCF v2.3. The notice appears and the preview updates. 2. Switch on the Google toggles that apply to you. 3. Open Content and review the editable fields — the title and buttons are still yours. 4. Open Design and check the longer banner still fits on mobile. Switch the preview to the phone view. The TCF text is several paragraphs; a Box layout in a corner usually becomes unreadable, and Banner or Popup works better. 5. Select Save , then Publish. 6. Open your site in a private window from an EEA location (or with a VPN) and confirm the TCF banner appears with the partners link. 7. If you use Google Ad Manager or AdSense, allow up to 24 hours and then check the EU consent status in your Google account. If it still reports a problem after that, see troubleshooting. Verifying it works Open your site, open the browser console, and run: __tcfapi('getTCData', 2, function(d, ok){ console.log(ok, d) }) You should see an object with cmpId, tcString, and eventStatus. Before the visitor decides, eventStatus is cmpuishown; after Accept All it becomes useractioncomplete and tcString is populated. For a visual check, IAB's own TC string decoder shows exactly which purposes and vendors a given string grants — paste the string from the console. Troubleshooting Google says "Consent not collected" or "No valid TC string" - Confirm you published after turning TCF on. - Test from an EEA location. TCF only runs for EEA, UK and Swiss visitors; from elsewhere Google's check sees nothing. - Check the Google tag loads after CookieLet. If an ad tag fires before the banner has set up __tcfapi, it reads no string. Move the CookieLet script to the top of <head>, or if you use Google Tag Manager, keep the CookieLet tag on the Consent Initialization trigger. - Allow up to 24 hours for Google's status to update after a fix. Interaction rate dropped after turning TCF on Expected to some degree — the banner is longer. Check the mobile layout; that's where most of the loss usually is. Don't try to recover it by hiding Reject All or shrinking it; that violates TCF policy and risks your registration. I want to change the message text You can't while TCF is on. If the disclosure wording is a problem for your site, you need to decide whether you need TCF at all — turn it off in General and the field unlocks. The partners count seems high It's the full Global Vendor List, not the vendors you actually work with. IAB policy allows a CMP to disclose all registered vendors. If you'd prefer to disclose only your real partners, contact support about restricting the vendor list for your site — a shorter list also tends to improve accept rates. The Google toggles are greyed out They depend on TCF. Switch on Support IAB TCF v2.3 first. Still need help? Email support@cookielet.com with your website URL, which ad platforms you use, and the output of the console check above if you ran it.

Last updated on Oct 08, 2026