Google Analytics cookies fire before consent
-
Hi! I′ve followed the steps provided in this thread, as well as this article and added the following code into the header section:
<script async data-cookieyes="cookieyes-analytics" src="https://www.googletagmanager.com/gtag/js?id=UA-xxxxxxxxx-1" ></script> <script> window.dataLayer = window.dataLayer || []; function gtag() { dataLayer.push(arguments); } gtag('js', new Date()); gtag('config', 'UA-xxxxxxxxx-1'); </script>
However, Google Analytics cookies still seem to trigger before the user gives consent. What is the problem with the code here or what should I do to implement prior consent on the website?
Thank you.
The page I need help with: [log in to see the link]
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Google Analytics cookies fire before consent’ is closed to new replies.