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

    NerdChris
    Participant

    Hi!

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

    gtag(‘config’, ‘xx-xxxxxxxxx-x’);
    </script>

    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?

    /NerdChris

    #31491

    Bartosz
    Keymaster

    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.