From b32a85ae7e62ae020759c1bf123ce1b79019a2f5 Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Fri, 12 Sep 2025 18:27:39 +0200 Subject: [PATCH] Fix cookie --- web/lib/service/analytics.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/web/lib/service/analytics.ts b/web/lib/service/analytics.ts index 27db3e09..a54bcbc1 100644 --- a/web/lib/service/analytics.ts +++ b/web/lib/service/analytics.ts @@ -32,6 +32,11 @@ export function initTracking() { loaded: (posthog) => { posthog.debug(false) }, + persistence: 'cookie', + cross_subdomain_cookie: true, // top-level domain cookie + secure_cookie: window.location.protocol === 'https:', + cookie_expiration: 365, + capture_pageview: true, }) }