1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-07-31 06:20:14 +02:00

Add event tracking for topic load

This commit is contained in:
Kamran Ahmed
2023-03-16 00:58:10 +00:00
parent d3578756d4
commit f9c1e6e0a2

View File

@@ -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,
});