📈(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:
committed by
aleb_the_flash
parent
47cd3eff74
commit
13d0d3d801
@@ -8,6 +8,10 @@ and this project adheres to
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- 📈(frontend) track new recording's modes
|
||||||
|
|
||||||
## [1.2.0] - 2026-01-05
|
## [1.2.0] - 2026-01-05
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|||||||
@@ -98,7 +98,10 @@ export const ScreenRecordingSidePanel = () => {
|
|||||||
await notifyParticipants({
|
await notifyParticipants({
|
||||||
type: NotificationType.ScreenRecordingStarted,
|
type: NotificationType.ScreenRecordingStarted,
|
||||||
})
|
})
|
||||||
posthog.capture('screen-recording-started', {})
|
posthog.capture('screen-recording-started', {
|
||||||
|
includeTranscript: includeTranscript,
|
||||||
|
language: selectedLanguageKey,
|
||||||
|
})
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Failed to handle recording:', error)
|
console.error('Failed to handle recording:', error)
|
||||||
|
|||||||
@@ -117,7 +117,10 @@ export const TranscriptSidePanel = () => {
|
|||||||
await notifyParticipants({
|
await notifyParticipants({
|
||||||
type: NotificationType.TranscriptionStarted,
|
type: NotificationType.TranscriptionStarted,
|
||||||
})
|
})
|
||||||
posthog.capture('transcript-started', {})
|
posthog.capture('transcript-started', {
|
||||||
|
includeScreenRecording: includeScreenRecording,
|
||||||
|
language: selectedLanguageKey,
|
||||||
|
})
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Failed to handle transcript:', error)
|
console.error('Failed to handle transcript:', error)
|
||||||
|
|||||||
Reference in New Issue
Block a user