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:
@@ -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,
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user