I have set up the Cookie Notice plugin and enabled that users can say decline cookies.
When I post my google tracking code/script into the “Script Blocking” HEAD nothing happens.
<script async src=”https://www.googletagmanager.com/gtag/js?id=xx-xxxxxxxxx-x”></script>
window.dataLayer = window.dataLayer || ;
gtag(‘js’, new Date());
When you go to my website the script is enabled from the beginning and even if I decline the cookies it still tracks my behavior on the site.
What seems to be wrong?
Have you checked if the Analytics code is in the source of your website before cookies are accepted? (We can’t check that without your site url)
Join 12,420 subscribers in receiving Digital Factory news and updates!