From c5c2ee3b2c5d5739d4e83fc19eb57012cabb03fa Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Thu, 16 Mar 2023 01:54:41 +0000 Subject: [PATCH] Update events --- src/components/FrameRenderer/renderer.js | 2 +- src/components/TopicOverlay/topic.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/FrameRenderer/renderer.js b/src/components/FrameRenderer/renderer.js index 5b4e16fac..bd969cc30 100644 --- a/src/components/FrameRenderer/renderer.js +++ b/src/components/FrameRenderer/renderer.js @@ -114,7 +114,7 @@ export class Renderer { // RoadmapClick, BestPracticesClick, etc category: `${pageType.replace('-', '')}Click`, // roadmap/frontend/switch-version - action: `${this.resourceType}/${this.resourceId}/switch-version`, + action: `${this.resourceId}/switch-version`, // roadmap/frontend/switch-version label: `${newJsonFileSlug}`, }); diff --git a/src/components/TopicOverlay/topic.js b/src/components/TopicOverlay/topic.js index a242c0011..bdb1663bc 100644 --- a/src/components/TopicOverlay/topic.js +++ b/src/components/TopicOverlay/topic.js @@ -199,7 +199,7 @@ export class Topic { window.fireEvent({ category: `RoadmapClick`, - action: `roadmap/${roadmapId}/load-topic`, + action: `${roadmapId}/load-topic`, label: topicUrl, });