top of page

How to implement cookie consent with Cookiebot

Dec 11, 2025
1 min read

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!

Related Posts

See All
How Extellio’s accessibility checks work

Extellio’s accessibility product helps you find accessibility issues on your website and organize the work needed to address them. It combines automated website checks, PDF checks and a checklist for

 
 
How to analyze user journeys

One of the strengths of combining the Extellio products is that you are able to not only analyze parts of a user journey, but the full user journey. By using surveys, you can learn who the visitors ar

 
 
How to turn on multi-factor authentication (MFA)

Multi-factor authentication requires users to input a verification code at each login. The verification code will be sent to your phone, making it difficult for anyone not authorized to access your a

 
 
bottom of page