Fix cookie

This commit is contained in:
MartinBraquet
2025-09-12 18:27:39 +02:00
parent af85edddca
commit b32a85ae7e

View File

@@ -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,
})
}