no more matomo

This commit is contained in:
Set Sakrecoer 2021-10-12 13:40:00 +02:00
parent 2790c5d5b1
commit 8afd1d452f

View file

@ -42,18 +42,18 @@
}
if (readCookie('cookie-notice-dismissed') == 'wantCookies') {
{% include analytics.js %}
{% include mautic-tracker.js %}
} else {
document.getElementById('cookie-notice').style.display = 'flex';
{% include matomo.js %}
}
if (readCookie('cookie-notice-dismissed') == 'dontWantCookies') {
document.getElementById('cookie-notice').style.display = 'none';
{% include matomo.js %}
}
document.getElementById('cookie-notice-accept').addEventListener("click", function () {
createCookie('cookie-notice-dismissed', 'wantCookies', 365);
@ -69,11 +69,4 @@
});
// document.getElementById('cookie-notice-gimme').addEventListener("click", function () {
// createCookie('cookie-notice-dismissed', 'wantCookies', 31);
// document.getElementById('cookie-notice').style.display = 'none';
//
// });
</script>