• Just few minutes after activating the plugin (with the auto block feature enabled, and using WP Fastest Cache with euCookie in the exclusion list) the analytics count drops to zero. It seems that the proper GA service does not properly run after consent, anyone else experiencing the same problem?
    Is there a way to manually exclude the GA script (and/or other specific scripts) from auto blocking?

    PS: OK, stupid question, you can use – class=”eucookielaw_exclude” – for this purpose, I’ll try that and report here if it worked in my case.

    PS 2: To add class=”eucookielaw_exclude” between GA <script> </script> tags doesn’t work, GA real-time count drops to zero even when Eu Cookie Law is deactivated. Trying a different syntax, now.

    • This topic was modified 7 years, 12 months ago by riccarbi.
    • This topic was modified 7 years, 12 months ago by riccarbi.
    • This topic was modified 7 years, 12 months ago by riccarbi.
    • This topic was modified 7 years, 12 months ago by riccarbi.
    • This topic was modified 7 years, 12 months ago by riccarbi.
    • This topic was modified 7 years, 12 months ago by riccarbi.
    • This topic was modified 7 years, 12 months ago by riccarbi.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter riccarbi

    (@riccarbi)

    OK, simply adding “eucookielaw_exclude” just before the </script> tag in GA’s code seems to work properly.

    Currently, I have both EU Cookie Law and WP Fastest Cache working together (a bit more test is needed, but they seems to integrate reasonably well), Adsense and other scripts are blocked until the user clicks on the acceptance button, but GA runs smoothly.

    Nice.

    Thread Starter riccarbi

    (@riccarbi)

    OK, it works; yet it throws the following error in the browser console “Uncaught ReferenceError: eucookielaw_exclude is not defined”.

    Can the support please posts an example of the technique reported in the auto block section of the FAQ, namely that of “If you want to exclude a script, you can type between <script> and </script> the string eucookielaw_exclude. Ex. add class=”eucookielaw_exclude” or a comment.”?

    In my case, simply adding the line class=”eucookielaw_exclude” between GA’s script tags doesn’t work.

    • This reply was modified 7 years, 10 months ago by riccarbi.
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Strange behaviour with Google Analytics’ is closed to new replies.