diff --git a/_includes/cookie-consent.html b/_includes/cookie-consent.html index ceef6b7..062c424 100644 --- a/_includes/cookie-consent.html +++ b/_includes/cookie-consent.html @@ -40,33 +40,21 @@ function eraseCookie(name) { createCookie(name, "", -1); } - if (readCookie('cookie-notice-dismissed') == 'wantCookies') { - {% include mautic-tracker.js %} + {% include mautic - tracker.js %} } else { document.getElementById('cookie-notice').style.display = 'flex'; - - - } if (readCookie('cookie-notice-dismissed') == 'dontWantCookies') { document.getElementById('cookie-notice').style.display = 'none'; - - } document.getElementById('cookie-notice-accept').addEventListener("click", function () { createCookie('cookie-notice-dismissed', 'wantCookies', 365); document.getElementById('cookie-notice').style.display = 'none'; - _paq.push(['trackEvent', 'Consent', 'wantCookie']); - }); - document.getElementById('cookie-notice-decline').addEventListener("click", function () { createCookie('cookie-notice-dismissed', 'dontWantCookies', 365); document.getElementById('cookie-notice').style.display = 'none'; - _paq.push(['trackEvent', 'Consent', 'dontWantCookie']); - }); - \ No newline at end of file