🧐(frontend) dispatch the app version to posthog

We add the app version in Posthog events to be
able to track which versions are being used and
identify potential issues related to specific
versions.
This commit is contained in:
Anthony LC
2026-05-07 10:53:19 +02:00
parent 67773ef2d9
commit d340c8f1f1

View File

@@ -60,6 +60,12 @@ export function PostHogProvider({
if (process.env.NODE_ENV === 'development') {
posthogInstance.debug();
}
if (process.env.NEXT_PUBLIC_APP_VERSION) {
posthogInstance.register({
app_version: process.env.NEXT_PUBLIC_APP_VERSION,
});
}
},
capture_pageview: false,
capture_pageleave: true,