• Resolved cadiz

    (@cadiz)


    Hi,

    I have inserted this script in Borlabs Cookie

    <script>
    window.koko_analytics.use_cookie = true;
    </script>

    No cookie is activated when the page loads. If I then activate the cookie from Borlabs and Google Analytics, I can see it. If I allow Koko Analytics, the cookie will not load.

    I did it like in your comment for “@techniknerd”:
    After version 1.0.10 of Koko Analytics you should be able to configure your cookie consent plugin (eg Borlabs Cookie) to print the following HTML only when the user has given consent.

    <script>
    window.koko_analytics.use_cookie = true;
    </script>

    If you then disable the use of cookies by default in the Koko Analytics settings page then the plugin will only use cookies if the visitor has given consent.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support Lap

    (@lapzor)

    Please share a link to where I can see this on your website so I can take a look at this. It’s important that that Javascript is loaded AFTER Koko analytics is loaded on the page.

    Thanks!

    Thread Starter cadiz

    (@cadiz)

    Here’s the link: https://photo-graphic-design.de/

    Thanks in advance.

    Plugin Author Danny van Kooten

    (@dvankooten)

    Hello @cadiz,

    I just checked your website and it seems like the snippet is outputted, but after Koko Analytics started initiating the request.

    Is there any way you can configure Borlabs to output the snippet earlier on in the page? Or otherwise configure WP Rocket to load the minified & combined JavaScript file a tiny bit later?

    Thread Starter cadiz

    (@cadiz)

    Hi, Danny,

    in WP Rocket, “JavaScript delayed loading” is activated. In Borlabs Cokie there is no possibility to change the loading of JavaScript.

    Plugin Support Lap

    (@lapzor)

    Just curious, if you turn off WP Rocket, does it work?
    If that is the case, maybe you can exclude the relevant script(s) from Wp Rocket and see if that fixes the issue for you.

    Hope that helps. If you have any questions, please let me know!

    Thread Starter cadiz

    (@cadiz)

    I deactivated WP Rocket. Still the same.

    Plugin Support Lap

    (@lapzor)

    In the coming update we will move Koko analytics from dom.ready event to window.load
    We believe that will solve this issue for you.

    I’m not 100% sure when the next update will be released, won’t be very long from now though.

    Hope that helps. If you have any questions, please let me know!

    Thread Starter cadiz

    (@cadiz)

    Many thanks for the support (5 stars). I will wait for the update.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Script does not work’ is closed to new replies.