How to implement cookie consent with Cookiebot

If your website uses Cookiebot to manage your cookies, you can use event listeners or callbacks give cookie consent to Extellio.

Use Cookiebot's custom event listeners or callback method to ensure the Extellio script won't set cookies prematurely. Both the event listener and callback fire when consent changes, and each page load. It means that if the visitor changes their consent through their visit, the event listener or callback will prevent the Extellio script from setting cookies. 

You can use the CookiebotOnAccept event listener: 

<script type="text/javascript">

function extellioCookieBotConsent(e) {
  if (Cookiebot.consent.statistics) {
extellio_actions.push(['rememberCookieConsentGiven']);
} else {
   extellio_actions.push(['forgetCookieConsentGiven']);
}
}
window.addEventListener('CookiebotOnAccept', ExtellioCookieBotConsent);
window.addEventListener('CookiebotOnDecline', ExtellioCookieBotConsent);

</script>

Tired of cookies? 

With our cookieless analytics, you can track visitors without cookies while still being GDPR and privacy-friendly!

Take me to cookieless tracking