GA4 Analytics property is not unset when consent revoked
-
Hi I have the following script to set up GA4 analytics cookies when the user accepts analytics:
<!-- Global site tag (gtag.js) - Google Analytics --> <script async src="https://www.googletagmanager.com/gtag/js?id=G-nnnnnnnn"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-nnnnnnnn'); </script>
(with the correct G- ID value)
When a user accepts cookies, 2 cookies (_ga and _ga-G-nnnnnn) are set.
When a user revokes consent, only the _ga cookie is unset.Do I have to write a php funciton to unset these myself? (The ‘old’ version of analytics worked perfectly, if I recall correctly
Thanks in advance
The page I need help with: [log in to see the link]
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘GA4 Analytics property is not unset when consent revoked’ is closed to new replies.