From e7d44670482dac5941bf87580abf65d660e47fc6 Mon Sep 17 00:00:00 2001 From: dragosgd Date: Tue, 16 Sep 2025 14:03:23 +0300 Subject: [PATCH] Fix cookie bug --- source/_templates/analytics.html | 124 +++++++++++++++++-------------- 1 file changed, 68 insertions(+), 56 deletions(-) diff --git a/source/_templates/analytics.html b/source/_templates/analytics.html index a6ed39f380..45432a524c 100644 --- a/source/_templates/analytics.html +++ b/source/_templates/analytics.html @@ -1,71 +1,83 @@ - - - +(function() { + var u="https://concordium.matomo.cloud/"; + _paq.push(['setTrackerUrl', u+'matomo.php']); + _paq.push(['setSiteId', '2']); + var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; + g.async=true; g.src='//cdn.matomo.cloud/concordium.matomo.cloud/matomo.js'; s.parentNode.insertBefore(g,s); +})(); +// Only remember consent if it was actually granted +if (stored === true) { + _paq.push(['rememberCookieConsentGiven']); +} + - - - + + + \ No newline at end of file