Skip to content

Commit

Permalink
chore: matomo disable live cookies
Browse files Browse the repository at this point in the history
  • Loading branch information
lsagetlethias committed Feb 6, 2024
1 parent 7135e8e commit 72e3f4e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,7 @@ import { Matomo } from "@/components/utils/Matomo";
import { config } from "@/config";
import { Follow } from "@/dsfr/base/Follow";

import {
ConsentBannerAndConsentManagement,
FooterConsentManagementItem,
FooterPersonalDataPolicyItem,
} from "../consentManagement";
import { FooterPersonalDataPolicyItem } from "../consentManagement";
import { defaultColorScheme } from "../defaultColorScheme";
import { StartDsfr } from "../StartDsfr";
import styles from "./root.module.scss";
Expand Down Expand Up @@ -84,7 +80,7 @@ const RootLayout = ({ children }: PropsWithChildren) => {
</head>
<body>
<DsfrProvider lang="fr">
<ConsentBannerAndConsentManagement />
{/* <ConsentBannerAndConsentManagement /> */}
<SkipLinks
links={[
{
Expand Down Expand Up @@ -135,7 +131,7 @@ const RootLayout = ({ children }: PropsWithChildren) => {
...headerFooterDisplayItem,
iconId: "fr-icon-theme-fill",
},
<FooterConsentManagementItem key="FooterConsentManagementItem" />,
// <FooterConsentManagementItem key="FooterConsentManagementItem" />,
{
text: <>▲&nbsp;Propulsé par Vercel</>,
linkProps: {
Expand Down
1 change: 1 addition & 0 deletions src/components/utils/Matomo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export const Matomo = ({ env, nonce }: MatomoProps) => {
if (!inited) {
init({
...config.matomo,
disableCookies: true,
nonce,
onInitialization: () => {
push(["optUserOut"]);
Expand Down

0 comments on commit 72e3f4e

Please sign in to comment.