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