Google Consent Mode

How the scan reads the consent state in the Google requests your page sends before anyone answers the banner, and when that state is a warning.

What AuditX checks

In the Lighthouse run nobody answers a consent banner. The scan reads the gcs and gcd values in the Google Analytics and Google Ads requests sent during that first load, including requests to your own domain for server-side tagging. Those values say whether ad_storage and analytics_storage were granted or denied and whether a default was set. A denied default for both is a pass. A warning, which counts toward the technical score at 40 percent of what a fail would cost, is given in two cases, and only when a consent banner was seen. The first is when the requests carry no consent state at all. The second is when the default for ad_storage is granted, confirmed by gcs, before anyone answered. A granted default only for analytics_storage is an info note, because some sites choose that on purpose. A state that was granted during the first load is an info note too, because consent tools do that for regions where they do not ask. Without a banner, a missing state or a granted default is an info note. No Google requests with consent values, or values in an unknown format, give an info note too, which does not lower the score. The result reflects the location the scanner connects from. The scan does not judge whether your setup meets any law.

Why it matters

Google tag documentation says to call the consent default command on every page before any commands that send measurement data, such as config or event.

Google describes consent mode as the way to communicate the consent status of a visitor to Google, so that tags limit data collection when consent is denied. Requests without that state, or with a granted default, tell Google something different from what the banner asks.

How to fix it

  1. Turn on Google Consent Mode in your consent tool. Most tools have a setting for it.
  2. Set the default for ad_storage and analytics_storage to denied, so it changes to granted only after a visitor accepts.
  3. If your tool uses region settings, check which regions get a granted default.
  4. Check the result with Google Tag Assistant after the change.
gtag("consent", "default", {
  "ad_storage": "denied",
  "analytics_storage": "denied",
  "wait_for_update": 500
});

Does your site pass this check? A free scan runs it with every other check and shows the result in about a minute.

Scan my site

Sources

Related checks

Last reviewed 2026-11-13.