📈(frontend) track metadata on recording-started events

I introduced transcript + screen recording modes but forgot
to properly track them in PostHog. Fix this issue.
This commit is contained in:
lebaudantoine
2026-01-06 16:15:10 +01:00
committed by aleb_the_flash
parent 47cd3eff74
commit 13d0d3d801
3 changed files with 12 additions and 2 deletions

View File

@@ -8,6 +8,10 @@ and this project adheres to
## [Unreleased]
### Changed
- 📈(frontend) track new recording's modes
## [1.2.0] - 2026-01-05
### Added

View File

@@ -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)

View File

@@ -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)