How to implement cookie consent with CookieYes

If your website uses CookieYes to manage your cookies, you can use event listeners to let Extellio know that cookie consent is given.

Use CookieYes custom event listener to ensure the Extellio script won't set cookies prematurely. The event listener fires when the consent changes and with each page load. It means that if the visitor changes their consent through their visit, the event listener will prevent the Extellio script from settings cookies.  

You can use the CookieYes event listener:  

<script>

document.addEventListener("cookieyes_consent_update", function (eventData) {
const data = eventData.detail;

if(data.accepted.includes("analytics")){
    extellio_actions.push(['rememberCookieConsentGiven']);
  } else {
    extellio_actions.push(['forgetCookieConsentGiven']);
}
});

</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