Mar 31, 2021
[Consent mode] Anonymous pings don't show up in analytics
We recently setup consent mode for google analytics expecting our various events to still be tracked but anonymously, but noticed that all of our metrics dropped and that events sent before the consent is set to granted are missing from ga dashboard.
As per https://support.google.com/analytics/answer/9976101?hl=en pings are sent even when analytics_storage is set to denied.
That's actually what we observe in the devtool's network panel:
- Before consent, events are sent with the gcs querystring set to G100 (but never accounted in ga's dashboard)
- After consent, events are sent with the gcs querystring set to G111 (only those events are accounted in ga's dashboard)
We tested on both a GA3 property and a GA4 property.
From https://stackoverflow.com/questions/64951848/google-analytics-consent-mode-beta-sends-data-but-is-not-reflected-on-dashbo it seems others experience the same issue.
Is this the expected behavior when analytics_storage is set to denied?
Is this the expected behavior when analytics_storage is set to denied?
If so, it's unclear how we are expected to anonymously measure visitors behavior, is there some documentation that we are missing?
Details
Community content may not be verified or up-to-date. Learn more.