Google Consent Mode and tracking

Consent Mode v2 not working: fix 5 Tag Assistant errors

Consent Mode v2 not working? Fix the five consent issues Google's Tag Assistant guide lists, from a missing or late default to updates that never arrive.

By Hamza Ahmad Aslam

Published

7 min read

Sources checked 10 Nov 2026

A panel of four consent toggles, two on and two off, with a stethoscope checking the signals

When Consent Mode v2 is not working, the default is missing or late, the update never arrives after a visitor chooses, or regional defaults don't apply. Google's Tag Assistant shows which of these you have, and its troubleshooting guide gives a fix for each.

This guide follows the issues in Google's Tag Assistant troubleshooting guide. For the basic walkthrough of a working setup, see how to check Consent Mode v2.

Google's guide lists five consent issues, each with its own fix. Match what you see in Tag Assistant to one row before changing code.

Issue in Google's guide What it means First thing to check
Consent tab empty Consent mode isn't implemented on the page Banner integration or template
Default consent not set Not all four signals have a default Default command or template fields
Default consent set too late A tag used consent before the default Script order or trigger
Consent state doesn't update No update after the banner choice Update mechanism
Consent state doesn't adapt to regional settings Region defaults don't behave as intended region values per signal

The four v2 signals are ad_storage, analytics_storage, ad_user_data and ad_personalization. Google's consent mode overview defines each one.

Google says the Consent tab is empty when consent mode is not implemented on the page. The banner may be visible, but nothing is telling Google tags about consent.

With Google Tag Manager, Google recommends a consent platform's template from the Community Template Gallery, fired on the Consent Initialization - All Pages trigger. With gtag.js, check that your consent tool has Consent Mode switched on in its settings.

One case looks similar but isn't an error. If Tag Assistant says "Could not connect", Google notes that your container or Google tag may be blocked from loading. That is what basic consent mode does: the overview explains that basic mode prevents Google tags from loading until the visitor interacts with the banner. Accept the banner and Tag Assistant should connect.

It means the page didn't set a default for all four signals. Google's guide asks for defaults for at least ad_storage, ad_user_data, ad_personalization and analytics_storage.

For gtag.js, Google's setup guide says to call the default on every page before any commands that send measurement data, such as config or event:

gtag('consent', 'default', {
  ad_storage: 'denied',
  ad_user_data: 'denied',
  ad_personalization: 'denied',
  analytics_storage: 'denied'
});

The debugging guide adds two rules: move default commands above any tag snippets, and don't set defaults asynchronously. With a Tag Manager template, check the template's fields. Google's setup guide notes that consent mode gained two parameters in November 2023, so a setup built before then may set only ad_storage and analytics_storage.

The default must be set before any tag or other code uses or updates consent. Google's example: the visitor opens the page, an ad tag fires, and only then is the default set to denied, so the tag has already read or written a cookie.

For gtag.js, the fix is the same as above: move the default higher in the page. Check for a second gtag.js snippet or a hardcoded tag above the banner script, too.

For Tag Manager, edit the consent template's trigger to Consent Initialization. Fire other tags after consent is initialised, for example with the Initialization - All Pages trigger for page-load tags.

Google also cautions against calling the gtag consent command from a Custom HTML tag. The setup guide explains that gtag commands are queued after other pending messages and may not be processed before the next event. Templates should use the setDefaultConsentState and updateConsentState APIs instead, as Google's template guide shows. The Google Tag Manager install guide covers CookieConsentHQ's template.

Why is analytics_storage still denied after Accept?

This is Google's "Consent state doesn't update" issue: the banner choice never reached Google tags, or reached them without analytics_storage. Compare the earliest and the latest Consent event in Tag Assistant to see which.

Google's checklist for gtag.js is to have an update mechanism for every parameter you set a default for, and to let visitors update to both granted and denied. An Accept all handler looks like this:

gtag('consent', 'update', {
  ad_storage: 'granted',
  analytics_storage: 'granted',
  ad_user_data: 'granted',
  ad_personalization: 'granted'
});

Grant only the purposes the visitor accepted. Then work through the likely gaps:

  • The banner's analytics category isn't mapped to analytics_storage, so the update leaves it out.
  • The page navigates away before the update runs. Google asks for updates to be tracked on the page where they occur, before any page transition.
  • The choice isn't restored on the next page. Google notes that consent mode doesn't save choices, so the site must persist the choice and call the update on later pages.
  • A Custom HTML tag sends the update, and the queued command can land after the event that needed it.
  • A second container or banner script sends a later update that overrides the first.

You can read the gtag commands from the browser console before and after clicking Accept:

(window.dataLayer || [])
  .filter((x) => x && x[0] === 'consent')
  .map((x) => ({ command: x[1], values: x[2] }));

A Tag Manager template sets consent through its own APIs, so its defaults may not appear here. Treat an empty result as a prompt to check Tag Assistant, not as proof of failure.

One cause Google's debugging guide shows is a regional default that covers some signals but not others: one default denies analytics_storage for region: ['ES', 'US-AK'], while a second default without a region sets only ad_storage.

The setup guide explains the rules. Regions use ISO 3166-2 codes, a default without region applies to everyone not covered by a regional one, and the more specific region wins. A visitor from California gets the US-CA default over the US one.

To test, Google tells you to set a simulated location in Chrome and repeat the Tag Assistant checks for each region. In Tag Manager, check the region settings in your consent template.

If your banner loads asynchronously, wait_for_update gives it time to send the update before tags fire. Google's example uses 500 milliseconds. It doesn't replace a missing default or a missing update.

How do you read gcs and gcd in network requests?

Google's requests carry consent parameters you can read in DevTools. Google documents what they are for, but not how their values are encoded.

The overview says gcs transmits the ad_storage and analytics_storage choices, and gcd encodes detailed information about the consent types. It also says gcd is sent whether or not consent mode is active, and that these fields may be encoded and may change. So seeing gcd proves nothing on its own.

To find them, open Network, tick Preserve log (Chrome's Network reference explains it), filter for collect and open a Google request's query parameters. Compare a request before consent with one after.

The decoding below is undocumented and based on practitioners' testing. It is how our scanner's methodology reads the values, not Google's specification:

Parameter Layout as tested Example
gcs G1, then one digit for ad_storage and one for analytics_storage (1 granted, 0 denied) G100 both denied
gcd 1 and a digit, then one letter and a digit per signal, in v2 signal order 13p3p3p3p5

In gcd, that decoding reads l as neither default nor update set, p, q or r as a default of denied, t, u or v as a default of granted, and m or n as an update with no default. Use these readings as a hint and confirm the sequence in Tag Assistant.

How do you confirm the errors are fixed?

The fix is confirmed when Tag Assistant shows all four defaults in the earliest Consent event and the latest event matches the visitor's choice. Repeat the test for rejection and for each region you configure.

  1. Open a private window without extensions, open DevTools and tick Preserve log.
  2. Load the page without touching the banner and check the defaults in Tag Assistant.
  3. Accept all, then check the latest Consent event and the next Google request.
  4. Reload or open another page and check that the choice is restored.
  5. Repeat with Reject all, and with a simulated location for each region rule.

For a quick first pass on one page, the free scanner checks that defaults come before Google tags and that all four signals are sent. It can only press Accept on a CookieConsentHQ banner, so for other tools its update result reads Not tested.

Checklist:

  • All four signals have a default on every page.
  • The default runs before any Google tag or other code that uses consent.
  • Tag Manager templates fire on Consent Initialization and use the template APIs.
  • Accept and Reject each send an update that matches the choice.
  • The choice persists across pages.
  • Regional defaults cover every signal you rely on.

Run the free checker on your site

Check your site

Sources