Posthog-fixes (#5901)

PostHog is now initialized with persistence: 'memory' so no cookies are
written on first load. Consent is handled in a PostHogConsentSync
component that switches to localStorage+cookie persistence only when the
user accepts, using the official @posthog/react package (cherry-picked
from 14aaf64)

---------

Co-authored-by: James Brunton <[email protected]>
This commit is contained in:
ConnorYoh
2026-03-09 12:13:09 +00:00
committed by GitHub
co-authored by James Brunton
parent 81596f0299
commit ff31b2f9ca
7 changed files with 27 additions and 29 deletions
+1 -4
View File
@@ -11,9 +11,6 @@
],
"@proprietary/*": [
"src/proprietary/*"
],
"posthog-js/react": [
"node_modules/posthog-js/react/dist/types/index.d.ts"
]
}
},
@@ -25,4 +22,4 @@
"src/core/setupTests.ts",
"src/proprietary"
]
}
}