Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

chore(frontend): enable strict script versioning (#79732)

Dustin Byrne5327715c2d02
diff --git a/frontend/src/loadPostHogJS.tsx b/frontend/src/loadPostHogJS.tsx
index b17cc8983a9d..7da22280f7d3 100644
--- a/frontend/src/loadPostHogJS.tsx
+++ b/frontend/src/loadPostHogJS.tsx
@@ -43,6 +43,7 @@ export function loadPostHogJS(options: LoadPostHogJSOptions = {}): void {
api_host: window.JS_POSTHOG_HOST,
ui_host: window.JS_POSTHOG_UI_HOST,
defaults: SDK_DEFAULTS_DATE,
+ strict_script_versioning: true,
persistence: 'localStorage+cookie',
cookie_persisted_properties: [
'prod_interest', // posthog.com sets these based on what docs were browsed