Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #31454



    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=””></script>
    window.dataLayer = window.dataLayer || [];
    function gtag(){dataLayer.push(arguments);}
    gtag(‘js’, new Date());

    gtag(‘config’, ‘xx-xxxxxxxxx-x’);

    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)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.