Title: Script does not work
Last modified: March 25, 2020

---

# Script does not work

 *  Resolved [cadiz](https://wordpress.org/support/users/cadiz/)
 * (@cadiz)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/script-does-not-work/)
 * 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](https://wordpress.org/support/users/lapzor/)
 * (@lapzor)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/script-does-not-work/#post-12582948)
 * 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](https://wordpress.org/support/users/cadiz/)
 * (@cadiz)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/script-does-not-work/#post-12585356)
 * Here’s the link: [https://photo-graphic-design.de/](https://photo-graphic-design.de/)
 * Thanks in advance.
 *  Plugin Author [Danny van Kooten](https://wordpress.org/support/users/dvankooten/)
 * (@dvankooten)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/script-does-not-work/#post-12585749)
 * Hello [@cadiz](https://wordpress.org/support/users/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](https://wordpress.org/support/users/cadiz/)
 * (@cadiz)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/script-does-not-work/#post-12586703)
 * 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](https://wordpress.org/support/users/lapzor/)
 * (@lapzor)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/script-does-not-work/#post-12594436)
 * 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](https://wordpress.org/support/users/cadiz/)
 * (@cadiz)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/script-does-not-work/#post-12594921)
 * I deactivated WP Rocket. Still the same.
 *  Plugin Support [Lap](https://wordpress.org/support/users/lapzor/)
 * (@lapzor)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/script-does-not-work/#post-12600510)
 * 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](https://wordpress.org/support/users/cadiz/)
 * (@cadiz)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/script-does-not-work/#post-12600563)
 * 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.

 * ![](https://ps.w.org/koko-analytics/assets/icon.svg?rev=2980600)
 * [Koko Analytics - Privacy-Friendly WordPress Analytics](https://wordpress.org/plugins/koko-analytics/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/koko-analytics/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/koko-analytics/)
 * [Active Topics](https://wordpress.org/support/plugin/koko-analytics/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/koko-analytics/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/koko-analytics/reviews/)

 * 8 replies
 * 3 participants
 * Last reply from: [cadiz](https://wordpress.org/support/users/cadiz/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/script-does-not-work/#post-12600563)
 * Status: resolved