Hello @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.
Hope that helps. If not, let us know please.
Yes works Thank you very much
Hello I have found that after consent, the cookie is only set when the visitor calls another page.
example:
Visitor accepts cookies on page 1. (no cookie is set)
Visitor goes to page 2 or reloads the page (the cookie is set)
Here is a link to my demo page: demo-techniknerd.de
Plugin Support
Lap
(@lapzor)
That’s indeed how it works at this time. The cookie is set on page load, so if at that time cookies aren’t allowed yet it’s not set.
We will look into a way to improve this.
yes I think you would have to enter the original Koko Cookie script in borlabs. So that the script is reloaded after consent.
Or am I wrong?
Plugin Support
Lap
(@lapzor)
Yes you can reload after consent if you want. It won’t make much difference for the statistics though. The plugin already detects that the visitor is coming from the same-page without the cookie. The only possibility is that someone accepts the cookie notice, then leaves the website without clicking anything and then returns to the same page (from a blank browser tab or different website).
Hope that helps. If you have any questions, please let me know!