window.addEventListener('CookiebotOnDialogInit', function (e) { InitListnerCMP();}, false); if (!Cookiebot.consent.preferences) { document.cookie = 'CookieConsent=;expires=' + new Date(0).toUTCString(); }; function InitListnerCMP(){ window.addEventListener('CookiebotOnAccept', function (e) { if (Cookiebot.consent.statistics || Cookiebot.consent.marketing) { document.location.reload(); }; }, false); } function CookiebotCallback_OnAccept() { Cookiebot.changed && (Cookiebot.consent.statistics || Cookiebot.consent.marketing) && document.location.reload(); }