From f9c1e6e0a22552e1304a9656b921ac99ae3077dc Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Thu, 16 Mar 2023 00:58:10 +0000 Subject: [PATCH] Add event tracking for topic load --- src/components/TopicOverlay/topic.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/components/TopicOverlay/topic.js b/src/components/TopicOverlay/topic.js index dfa927952..a242c0011 100644 --- a/src/components/TopicOverlay/topic.js +++ b/src/components/TopicOverlay/topic.js @@ -180,12 +180,6 @@ export class Topic { const topicUrl = `/best-practices/${bestPracticeId}/${topicId.replaceAll(':', '/')}`; - window.fireEvent({ - category: `BestPracticesClick`, - action: `Load Topic`, - label: topicUrl, - }); - this.renderTopicFromUrl(topicUrl).then(() => null); } @@ -205,7 +199,7 @@ export class Topic { window.fireEvent({ category: `RoadmapClick`, - action: `Load Topic`, + action: `roadmap/${roadmapId}/load-topic`, label: topicUrl, });