Skip to content

Commit

Permalink
fix: less strict matomo
Browse files Browse the repository at this point in the history
  • Loading branch information
lsagetlethias committed Sep 17, 2024
1 parent e90629a commit f466214
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/utils/Matomo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const Matomo = ({ env, nonce }: MatomoProps) => {
disableCookies: true,
nonce,
onInitialization: () => {
push(["optUserOut"]);
// push(["optUserOut"]);
push(["requireCookieConsent"]);
push(["enableHeartBeatTimer"]);
push(["disableQueueRequest"]);
Expand All @@ -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
Expand Down

0 comments on commit f466214

Please sign in to comment.