From 6d834f20da210c0070280cae45ea514f9de6a115 Mon Sep 17 00:00:00 2001 From: David Veszelovszki Date: Fri, 29 Mar 2024 15:29:47 +0100 Subject: [PATCH] PLG: Fix event feature names (#61498) --- client/web/src/cody/onboarding/instructions/JetBrains.tsx | 4 ++-- client/web/src/cody/onboarding/instructions/NeoVim.tsx | 4 ++-- client/web/src/cody/onboarding/instructions/VsCode.tsx | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/client/web/src/cody/onboarding/instructions/JetBrains.tsx b/client/web/src/cody/onboarding/instructions/JetBrains.tsx index b11b3b93e60..b5e3446343d 100644 --- a/client/web/src/cody/onboarding/instructions/JetBrains.tsx +++ b/client/web/src/cody/onboarding/instructions/JetBrains.tsx @@ -30,10 +30,10 @@ export function JetBrainsInstructions({ useEffect(() => { if (step === EditorStep.SetupInstructions) { eventLogger.log(EventName.CODY_EDITOR_SETUP_VIEWED, { editor: 'JetBrains' }) - telemetryRecorder.recordEvent('cody.editorSetupViewed', 'view', { metadata: { jetBrains: 1 } }) + telemetryRecorder.recordEvent('cody.editorSetupPage', 'view', { metadata: { jetBrains: 1 } }) } else if (step === EditorStep.CodyFeatures) { eventLogger.log(EventName.CODY_EDITOR_FEATURES_VIEWED, { editor: 'JetBrains' }) - telemetryRecorder.recordEvent('cody.editorFeaturesViewed', 'view', { metadata: { jetBrains: 1 } }) + telemetryRecorder.recordEvent('cody.editorFeaturesPage', 'view', { metadata: { jetBrains: 1 } }) } }, [step, telemetryRecorder]) diff --git a/client/web/src/cody/onboarding/instructions/NeoVim.tsx b/client/web/src/cody/onboarding/instructions/NeoVim.tsx index be4718ab7f9..56a29090ae3 100644 --- a/client/web/src/cody/onboarding/instructions/NeoVim.tsx +++ b/client/web/src/cody/onboarding/instructions/NeoVim.tsx @@ -30,10 +30,10 @@ export function NeoVimInstructions({ useEffect(() => { if (step === EditorStep.SetupInstructions) { eventLogger.log(EventName.CODY_EDITOR_SETUP_VIEWED, { editor: 'NeoVim' }) - telemetryRecorder.recordEvent('cody.editorSetupViewed', 'view', { metadata: { neoVim: 1 } }) + telemetryRecorder.recordEvent('cody.editorSetupPage', 'view', { metadata: { neoVim: 1 } }) } else if (step === EditorStep.CodyFeatures) { eventLogger.log(EventName.CODY_EDITOR_FEATURES_VIEWED, { editor: 'NeoVim' }) - telemetryRecorder.recordEvent('cody.editorFeaturesViewed', 'view', { metadata: { neoVim: 1 } }) + telemetryRecorder.recordEvent('cody.editorFeaturesPage', 'view', { metadata: { neoVim: 1 } }) } }, [step, telemetryRecorder]) diff --git a/client/web/src/cody/onboarding/instructions/VsCode.tsx b/client/web/src/cody/onboarding/instructions/VsCode.tsx index 26a37a73e72..8f7ed1bac2a 100644 --- a/client/web/src/cody/onboarding/instructions/VsCode.tsx +++ b/client/web/src/cody/onboarding/instructions/VsCode.tsx @@ -30,10 +30,10 @@ export function VSCodeInstructions({ useEffect(() => { if (step === EditorStep.SetupInstructions) { eventLogger.log(EventName.CODY_EDITOR_SETUP_VIEWED, { editor: 'VS Code' }) - telemetryRecorder.recordEvent('cody.editorSetupViewed', 'view', { metadata: { vsCode: 1 } }) + telemetryRecorder.recordEvent('cody.editorSetupPage', 'view', { metadata: { vsCode: 1 } }) } else if (step === EditorStep.CodyFeatures) { eventLogger.log(EventName.CODY_EDITOR_FEATURES_VIEWED, { editor: 'VS Code' }) - telemetryRecorder.recordEvent('cody.editorFeaturesViewed', 'view', { metadata: { vsCode: 1 } }) + telemetryRecorder.recordEvent('cody.editorFeaturesPage', 'view', { metadata: { vsCode: 1 } }) } }, [step, telemetryRecorder])