From d340c8f1f18f761a21db2ae60675cf69ffa2591a Mon Sep 17 00:00:00 2001 From: Anthony LC Date: Thu, 7 May 2026 10:53:19 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=90(frontend)=20dispatch=20the=20app?= =?UTF-8?q?=20version=20to=20posthog?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- src/frontend/apps/impress/src/services/PosthogAnalytic.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/frontend/apps/impress/src/services/PosthogAnalytic.tsx b/src/frontend/apps/impress/src/services/PosthogAnalytic.tsx index 001e15a9f..0acc30500 100644 --- a/src/frontend/apps/impress/src/services/PosthogAnalytic.tsx +++ b/src/frontend/apps/impress/src/services/PosthogAnalytic.tsx @@ -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,