How to implement cookie consent with Cookie information

If your website uses Cookie information to manage your cookies, you can use an event listener to give cookie consent to Extellio.

Use Cookie information's custom event listeners to ensure the Extellio script won't set cookies prematurely. The event listener runs when consent is set or changed. It means that if the visitor changes their consent through their visit, the event listener will prevent the Extellio script from setting cookies. 

You can use the CookieInformationConsentGiven event listener: 

<script> 
window.addEventListener('CookieInformationConsentGiven', function(event) { if (CookieInformation.getConsentGivenFor('cookie_cat_statistic')) {
   extellio_actions.push(['rememberCookieConsentGiven']);
} else {
extellio_actions.push(['forgetCookieConsentGiven']);
} }, false);
</script>

* Note, this only affects the statistical cookies. If you use surveys, functional cookies that prevent the survey from triggering multiple times will still be set.