Why am I losing analytics data since the consent banner was installed?

Kilian Müller
Kilian MüllerOwner of 1hold.de · Google PartnerUpdated
Consent ModeGoogle Certified Specialist

After installing a consent banner, Google Analytics only observes visitors who accept analytics cookies, so a large drop in users and sessions is often simply the share of visitors who decline. A drop of this size becomes a technical problem when tags do not fire even after consent, when consent mode is missing, or when GA4 cannot model the missing data because the property does not meet Google’s requirements.

So first separate two questions: how many visitors decline, which no setup can change, and how much data is lost on top of that through configuration errors, which you can fix.

Why does a consent banner reduce analytics data?

  • Declined consent. If a visitor declines, GA4 may not set cookies. Without consent mode, no data is sent at all. With advanced consent mode, the tag sends cookieless pings without a persistent identifier.
  • Basic instead of advanced consent mode. In basic consent mode, Google tags only load after the visitor accepts. Visitors who decline or ignore the banner leave no trace, and GA4 has no basis for modeling.
  • Consent is never passed on. The visitor accepts, but the banner does not send a consent update to Google. The state stays at denied, and GA4 loses consenting visitors too.
  • Tags fire too late. If the Google tag only loads after the consent decision, the page view of the first page is often missing, and with it the traffic source of the session.
  • Modeling is not active. GA4 only estimates missing data when the property qualifies for behavioral modeling and the reporting identity is set to Blended.

When does GA4 fill the gap with modeled data?

Behavioral modeling uses the behavior of consenting visitors to estimate the behavior of those who decline. According to Google, the property must meet these requirements:

  • Advanced consent mode on all pages. Tags load before the consent banner appears and in all cases, not only after consent.
  • Enough declined traffic. At least 1,000 events per day with analytics_storage set to denied for at least 7 days.
  • Enough consented traffic. At least 1,000 daily users sending events with analytics_storage set to granted for at least 7 of the previous 28 days.

Even then, Google says that training the model can take longer and that modeling is only included when there is high confidence in model quality. Smaller websites therefore often see only observed data.

How do I check whether data is lost through an error?

  1. Test the decision. Open the website in a private window with the Tag Manager preview, accept the banner and check in the Consent tab that the states change from denied to granted.
  2. Check the requests. In the browser’s developer tools under Network, filter for requests to Google Analytics. The gcs parameter shows the consent state, for example G100 when both storage types are denied and G111 when both are granted.
  3. Look for duplicate tags. Search the page source for a hard-coded Google tag outside Tag Manager. Such tags often ignore the banner or send data twice.
  4. Check the first page view. In GA4, compare the share of sessions with source (not set) or without a landing page before and after the banner was installed. A clear increase points to tags firing too late.
  5. Check the reporting identity. Under Admin → Data display → Reporting identity, select Blended if you want to see modeled data in reports.

Do not compare the numbers after the banner with the numbers before. Check instead that consenting visitors are measured completely, that consent mode sends the right states, and whether your property can qualify for modeling.

Sources

Want to know how much of your data loss is due to consent and how much to setup errors? We check banner, consent mode and tags and close the gaps that can be closed. Book a free intro call or read more about our tracking services.

Need personal advice?

Our Google-certified experts are happy to help – free and without obligation.

Book a meeting