Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #25053
    Anonymous
    Inactive

    Hi,

    I entered the JS code for Google Analytics in order to allow visitors to accept or refuse this cookie. The cookie is blocked as expected, but the problem is that even after accepting the cookie the JS code doesn’t run and I’m not able to track users

    This is the JS code I used (I just put XXXX insted of the real ID) from Google Administration page.

    <!– Global site tag (gtag.js) – Google Analytics –>
    <script async src=”https://www.googletagmanager.com/gtag/js?id=UA-XXXXXXXX-1″></script&gt;
    <script>
    window.dataLayer = window.dataLayer || [];
    function gtag(){dataLayer.push(arguments);}
    gtag(‘js’, new Date());

    gtag(‘config’, ‘UA-XXXXXX-1’);

    </script>

    Any idea will be much appreciated. I really don’t understand why the code doesn’t run.
    Best,
    Patrice

    #25277
    ziergipfel
    Participant

    Hey Guys,
    i am really interested in the answer, too.
    I have the complete same Problem here.

    Thank you
    Christina

    #25309
    Anonymous
    Inactive

    Hello,

    regarding this issue, I would just like to add that the GA cookie doesn’t fire on the home page. It works on all other pages (pretty weird).
    I am really looking for an answer since this is mandatory for the european regulation (GDPR). We need the user consent in order to use Google Analytics. I like Cookie Notice very much but I will have to find another solution if I can’t get an answer on this problem (and by the way Dfactory should also comply to the GDPR and as such, provides help to customers).

    Thanks a lot for your help,
    Patrice

    #26688
    jeanlucb
    Participant

    Salut,

    Did you get an answer about this? I have the same issue… https://dfactory.co/support/topic/google-analytics-not-tracking-until-accept-clicked/#post-26687

    Thanks
    Jean-Luc

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