From f46621472c8a56e877e508693aa0e16e8cf1c30f Mon Sep 17 00:00:00 2001 From: Lilian Saget-Lethias Date: Tue, 17 Sep 2024 16:04:44 +0200 Subject: [PATCH] fix: less strict matomo --- src/components/utils/Matomo.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/utils/Matomo.tsx b/src/components/utils/Matomo.tsx index 84376de..0004a02 100644 --- a/src/components/utils/Matomo.tsx +++ b/src/components/utils/Matomo.tsx @@ -34,7 +34,7 @@ export const Matomo = ({ env, nonce }: MatomoProps) => { disableCookies: true, nonce, onInitialization: () => { - push(["optUserOut"]); + // push(["optUserOut"]); push(["requireCookieConsent"]); push(["enableHeartBeatTimer"]); push(["disableQueueRequest"]); @@ -46,11 +46,11 @@ export const Matomo = ({ env, nonce }: MatomoProps) => { if (matomoConsent) { console.debug("Activation des cookies Matomo."); - push(["forgetUserOptOut"]); + // push(["forgetUserOptOut"]); push(["rememberCookieConsentGiven"]); } else { console.debug("Désactivation des cookies Matomo."); - push(["optUserOut"]); + // push(["optUserOut"]); push(["forgetCookieConsentGiven"]); } // eslint-disable-next-line react-hooks/exhaustive-deps -- don't listen on inited