Skip to content

Commit d340c8f

Browse files
committed
🧐(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.
1 parent 67773ef commit d340c8f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/frontend/apps/impress/src/services/PosthogAnalytic.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@ export function PostHogProvider({
6060
if (process.env.NODE_ENV === 'development') {
6161
posthogInstance.debug();
6262
}
63+
64+
if (process.env.NEXT_PUBLIC_APP_VERSION) {
65+
posthogInstance.register({
66+
app_version: process.env.NEXT_PUBLIC_APP_VERSION,
67+
});
68+
}
6369
},
6470
capture_pageview: false,
6571
capture_pageleave: true,

0 commit comments

Comments
 (0)