mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-07-31 22:40:19 +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(':', '/')}`;
|
const topicUrl = `/best-practices/${bestPracticeId}/${topicId.replaceAll(':', '/')}`;
|
||||||
|
|
||||||
window.fireEvent({
|
|
||||||
category: `BestPracticesClick`,
|
|
||||||
action: `Load Topic`,
|
|
||||||
label: topicUrl,
|
|
||||||
});
|
|
||||||
|
|
||||||
this.renderTopicFromUrl(topicUrl).then(() => null);
|
this.renderTopicFromUrl(topicUrl).then(() => null);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -205,7 +199,7 @@ export class Topic {
|
|||||||
|
|
||||||
window.fireEvent({
|
window.fireEvent({
|
||||||
category: `RoadmapClick`,
|
category: `RoadmapClick`,
|
||||||
action: `Load Topic`,
|
action: `roadmap/${roadmapId}/load-topic`,
|
||||||
label: topicUrl,
|
label: topicUrl,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user