Consent Mode not working in Google Tag Manager
Consent Mode usually fails because the default consent state is set too late, or because your cookie banner never sends the update after a visitor chooses. You can test both for free in Tag Manager's preview mode and fix them in your container or banner settings.
Consent Mode tells Google's tags what a visitor has agreed to, so they adjust what they store and send. When it is not working, your banner may look fine while Google tags ignore the visitor's choice, or your reports show missing or strange data. The cause is usually one of a few setup mistakes, and most can be found in a few minutes.
What the problem looks like
- Google Analytics or Google Ads tags fire and set cookies before the visitor clicks anything.
- A visitor clicks Reject, but the tags behave as if they were allowed.
- A visitor clicks Accept, but the tags stay in the denied state, so data goes missing.
- Tag Manager's preview shows no consent signals at all, or shows
deniedon every page even after accepting. - Traffic in GA4 drops sharply after a cookie banner was added.
Why it matters
If tags run before consent, the banner is only decoration, and that is a trust and legal risk for sites with visitors in the EU or UK. If the opposite happens and consent never updates to granted, you lose analytics and advertising data you are allowed to collect. Google also expects the newer signals ad_user_data and ad_personalization for personalised advertising features, so a setup that predates them may be incomplete.
How Consent Mode is meant to work
There are two steps. First, a default state is set before any tag runs, usually denied for visitors who need to be asked. Second, your cookie banner (the consent management platform, or CMP) sends an update when the visitor chooses. The main signals are ad_storage, analytics_storage, ad_user_data and ad_personalization. If either step is missing or happens in the wrong order, it breaks.
How to check your site (free)
- In Tag Manager, click Preview, enter your site address and connect Tag Assistant. Open your site in the window that appears.
- In the Tag Assistant timeline, click the first event and open the Consent tab. You should see an on-page default state set there, before your Google tags fired. After you click the banner, a later event should show an update.
- Open your browser's developer tools, go to the Network tab and filter for
collect. Look at thegcsvalue in Google Analytics requests.G100means both ad and analytics storage are denied, andG111means both are granted. - In developer tools under Application, then Cookies, check whether
_gacookies exist before you click anything. - Always test in a private window, with ad blockers off, and clear cookies between tests. Returning visitors with a saved choice behave differently from new ones.
Common causes and fixes
| Cause | Fix |
|---|---|
| Default consent set on the wrong trigger | Fire the default on Consent Initialization - All Pages, not All Pages or Page View |
| Banner does not send an update | Check the banner's Google Consent Mode or Tag Manager integration setting |
| Two sources set consent | Remove duplicate code, so only the banner or one tag sets it |
| Banner loads after Tag Manager | Load the banner through the Consent Initialization trigger, or use the CMP's official template |
| Tags have no consent requirements | Set required consent in each tag's Advanced Settings, Consent Settings |
| Non-Google tags ignore Consent Mode | Add consent checks to Meta pixel and similar tags separately |
The most common mistake is timing. If the default fires on an ordinary page view, Google tags may already have run in their normal mode. Move it to the Consent Initialization trigger. A default looks roughly like this when set through a custom tag, though most people use their banner's template instead:
gtag('consent', 'default', {
ad_storage: 'denied',
analytics_storage: 'denied',
ad_user_data: 'denied',
ad_personalization: 'denied',
wait_for_update: 500
});
The wait_for_update value gives the banner a short time (in milliseconds) to send a saved choice before tags decide what to do. Without it, returning visitors who already accepted can be treated as denied on page load.
If you turn on the consent overview in Tag Manager (under Admin, Container Settings, look for the consent overview option, which depends on your version), it shows which tags have consent checks and which do not. Google tags such as GA4 have built-in checks, but many other tags need you to set them by hand.
Common platforms
On WordPress, a cookie plugin or a Google plugin such as Site Kit often adds its own Google code, so make sure Tag Manager is not installed twice. Check whether your banner plugin has a Consent Mode option. On Shopify, consent is tied to the store's own privacy settings, so check that your banner and Tag Manager setup are connected to them. Wix, Squarespace and Webflow let you add Tag Manager through custom code or an integration area, and the banner may be separate, so confirm the banner can talk to Tag Manager. Where your site builder offers its own consent tool, use only one banner. There are step by step notes in the Google Tag Manager guide.
If cookies are still appearing before anyone clicks, see cookies set before consent. If consent works but GA4 now shows little or nothing, see GA4 no data showing.
How to confirm the fix worked
- Open a private window, clear cookies and load your site with Tag Assistant connected.
- Confirm the default state appears at Consent Initialization, before your Google tags.
- Click Reject and check that requests show
gcs=G100and no_gacookies are set. - Clear cookies, load again, click Accept and check that an update event appears and
gcsshowsG111. - Reload the page to confirm the saved choice is respected.
- A day or two later, check GA4 Realtime and your reports for data from accepting visitors.
How to stop it coming back
Most breakages happen when someone changes the banner, installs a new plugin or edits Tag Manager. Publish container changes with a clear version name, and re-run the preview test after every change to the banner or tags. Keep a short note of which tool sets the default and which sends the update, so nobody adds a second one. Test after theme or platform updates too.
A regular check helps because this fails quietly. SiteMonday runs an analytics setup check in week 38 and a GDPR and cookie consent review in week 27, each with a written report and a ranked fix list. It finds and explains problems, and you or your developer fix them.
Step by step for your platform
- Consent Mode not working in Google Tag Manager on Google Tag Manager
- Consent Mode not working in Google Tag Manager on WordPress
- Consent Mode not working in Google Tag Manager on Shopify
- Consent Mode not working in Google Tag Manager on Google Analytics 4
- Consent Mode not working in Google Tag Manager on Wix
- Consent Mode not working in Google Tag Manager on Squarespace
- Consent Mode not working in Google Tag Manager on Webflow
Questions
Why does Consent Mode show denied even after I accept?
Your banner is probably not sending the update, or the update is sent under different settings than the one Tag Manager reads. Check the banner's Consent Mode integration and look for an update event in Tag Assistant.
Do I need Consent Mode if I already have a cookie banner?
A banner alone only controls what you choose to load. Consent Mode is what tells Google tags the visitor's choice, and Google expects it for some advertising features in the EEA.
What is the difference between Consent Mode basic and advanced?
In basic mode, Google tags do not load until the visitor consents. In advanced mode they load right away and send limited, cookieless signals while consent is denied. Your banner or Tag Manager setup decides which one you use.
Does Consent Mode also block the Meta pixel?
No, it is a Google system. Tags from other vendors need their own consent checks in Tag Manager or in your banner.
Why did my GA4 numbers drop after adding Consent Mode?
Visitors who reject can no longer be fully tracked, so some drop is expected. A very large drop often means the update is not being sent after acceptance.
Can I test Consent Mode without developer skills?
Yes. Tag Manager's preview mode and the browser's Network tab are free, and the steps above need no code. Changing the setup itself may need your developer.