From 13d0d3d801e7cf040b7ca290c2816d1d7cfa9a99 Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Tue, 6 Jan 2026 16:15:10 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=88(frontend)=20track=20metadata=20on?= =?UTF-8?q?=20recording-started=20events?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I introduced transcript + screen recording modes but forgot to properly track them in PostHog. Fix this issue. --- CHANGELOG.md | 4 ++++ .../recording/components/ScreenRecordingSidePanel.tsx | 5 ++++- .../features/recording/components/TranscriptSidePanel.tsx | 5 ++++- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2a495d99..48ff4453 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,10 @@ and this project adheres to ## [Unreleased] +### Changed + +- 📈(frontend) track new recording's modes + ## [1.2.0] - 2026-01-05 ### Added diff --git a/src/frontend/src/features/recording/components/ScreenRecordingSidePanel.tsx b/src/frontend/src/features/recording/components/ScreenRecordingSidePanel.tsx index 8523abbd..dd139451 100644 --- a/src/frontend/src/features/recording/components/ScreenRecordingSidePanel.tsx +++ b/src/frontend/src/features/recording/components/ScreenRecordingSidePanel.tsx @@ -98,7 +98,10 @@ export const ScreenRecordingSidePanel = () => { await notifyParticipants({ type: NotificationType.ScreenRecordingStarted, }) - posthog.capture('screen-recording-started', {}) + posthog.capture('screen-recording-started', { + includeTranscript: includeTranscript, + language: selectedLanguageKey, + }) } } catch (error) { console.error('Failed to handle recording:', error) diff --git a/src/frontend/src/features/recording/components/TranscriptSidePanel.tsx b/src/frontend/src/features/recording/components/TranscriptSidePanel.tsx index 84ac9d9e..d608ab9a 100644 --- a/src/frontend/src/features/recording/components/TranscriptSidePanel.tsx +++ b/src/frontend/src/features/recording/components/TranscriptSidePanel.tsx @@ -117,7 +117,10 @@ export const TranscriptSidePanel = () => { await notifyParticipants({ type: NotificationType.TranscriptionStarted, }) - posthog.capture('transcript-started', {}) + posthog.capture('transcript-started', { + includeScreenRecording: includeScreenRecording, + language: selectedLanguageKey, + }) } } catch (error) { console.error('Failed to handle transcript:', error)