Tag manager · Install guide
Cookie consent for Google Tag Manager
Updated
Kiescy sends Google Consent Mode v2 defaults and updates, so GTM's built-in consent checks work without extra tags. Install the banner directly on the page, before the GTM container.
- Setup time
- About 5 minutes
- Coding
- None: copy and paste
- Laws covered
- GDPR, UK GDPR, CCPA, DPDP
- Google Consent Mode v2
- Built in, basic or advanced
Set up cookie consent on Google Tag Manager in 3 steps
- Create a free accountAdd your website. Kiescy scans it and finds the trackers that need consent.
- Paste one script into Google Tag ManagerYour banner appears and starts holding back trackers until visitors choose.
- Check it worksOpen your site in a private window and run the free check to confirm nothing loads early.
Why Google Tag Manager sites need cookie consent
GTM often holds every marketing tag a site runs, so it's where consent mistakes multiply: one tag without a consent check fires for everyone.
Your options on Google Tag Manager
| Approach | Good for | Watch out for |
|---|---|---|
| A CMP template from the GTM Community Gallery | GTM-centric teams | The CMP loads inside GTM, after hard-coded page scripts |
| Kiescy above the GTM snippet | Sites with tags both in and outside GTM | Configure consent checks for non-Google tags |
Add your privacy policy
Policies don't go through GTM. Embed them on your site's pages directly, or link to your hosted URLs.
Good to know
Loading the banner itself through GTM is not recommended: GTM loads after scripts already in your page, so the banner can't hold those back, and Consent Mode defaults may arrive too late.
Check that it works
Open your site in a private window: the banner should appear for a first-time visitor. Then run the free privacy check, which opens your site as a new EU visitor and lists anything that still loads before consent.
Kiescy's monitoring repeats that check on a schedule and emails you if a new script starts tracking before consent.
What your Google Tag Manager visitors see
Kiescy detects where each visitor is and shows the version their law requires, so you don't have to choose between the strictest banner for everyone and no banner at all.
Trackers Google Tag Manager sites usually load
These are the tools that most often need consent on Google Tag Manager sites, and how Kiescy treats them. Run a cookie scan to see exactly what yours loads.
| Tool | Category | What happens |
|---|---|---|
| Google Analytics 4 tags | Analytics | Built-in consent checks (analytics_storage) |
| Google Ads conversion and remarketing | Advertising | Built-in checks (ad_storage, ad_user_data, ad_personalization) |
| Meta Pixel, LinkedIn, TikTok Custom HTML tags | Advertising | Add consent requirement manually |
| Hotjar, Clarity Custom HTML tags | Analytics | Add consent requirement manually |
Google Consent Mode v2 on Google Tag Manager
Google's own tags in GTM have built-in consent checks that read Kiescy's Consent Mode signals. For non-Google tags, open Advanced Settings → Consent Settings and choose Require additional consent, then add ad_storage (advertising) or analytics_storage (analytics).
Fire non-Google tags on a trigger that waits for consent, or rely on GTM's consent checks re-evaluating when Kiescy sends its update.
New to Consent Mode? Read basic vs advanced Consent Mode v2.
Troubleshooting
Preview mode shows consent as "Not set"
The Kiescy script isn't above the GTM snippet. Move it higher in <head> so the defaults exist when GTM starts.
A Custom HTML tag fires before consent
Custom HTML tags have no built-in consent check. Add Require additional consent with the right consent type.
Compliance checklist for Google Tag Manager
- A consent banner that blocks non-essential trackers until the visitor agrees (opt-in for the EU, UK and India).
- A "Do Not Sell or Share" option for California visitors, and Global Privacy Control honored.
- A privacy policy that names the tools above, linked from every page.
- A cookie policy listing the cookies your scan finds.
- A way for people to request, correct or delete their data.
- Records of each consent choice, kept as proof.
- Turn on Enable consent overview in Container Settings and review every tag's consent status.
Guides for Google Tag Manager site owners
Questions
Do I need a Consent Initialization tag?
Not when the banner is on the page before GTM: Kiescy sets the Consent Mode defaults before your container loads.
Basic or advanced Consent Mode?
Both work. See our guide to Consent Mode v2 basic vs advanced to choose.
Can I run the banner from GTM instead?
It's not recommended: GTM loads after scripts already in your HTML, so the banner couldn't hold those back, and Consent Mode defaults could arrive too late.
Official Google Tag Manager documentation
Menus move. If a step above doesn't match what you see, Google Tag Manager's own docs show the current way to add code.
Get compliant this afternoon, not this quarter.
Set up your policies, banner and request form in one place. Free while Kiescy is in early access.