-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
track additional browse events in posthog (#2011)
* fire a posthog event when clicking the "Topic" link on the homepage in "Browse by Topic" * add events for homepage browse topics section * wrap new events in posthog api key check * track topic_clicked vs subtopic_clicked on topics listing page * properly set subtopic name * properly track clicking a subtopic vs related topic on the topic channel page * consolidate posthog events to a constants file
- Loading branch information
Showing
12 changed files
with
144 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
export const PostHogEvents = { | ||
SearchUpdate: "search_update", | ||
CallToActionClicked: "cta_clicked", | ||
LearningResourceDrawerOpen: "lrd_open", | ||
LearningResourceDrawerView: "lrd_view", | ||
HeroBrowseTopics: "clicked_hero_browse_topics", | ||
LRAddToList: "lr_add_to_list", | ||
ProviderLinkClicked: "provider_link_clicked", | ||
HomeTopicClicked: "home_topic_clicked", | ||
HomeSeeAllTopicsClicked: "home_see_all_topics_clicked", | ||
TopicClicked: "topic_clicked", | ||
SubTopicClicked: "sub_topic_clicked", | ||
RelatedTopicClicked: "related_topic_clicked", | ||
DepartmentLinkClicked: "department_link_clicked", | ||
ClosedNavDrawer: "closed_nav_drawer", | ||
OpenedNavDrawer: "opened_nav_drawer", | ||
ClickedNavBrowseCourses: "clicked_nav_browse_courses", | ||
ClickedNavBrowsePrograms: "clicked_nav_browse_programs", | ||
ClickedNavBrowseLearningMaterials: "clicked_nav_browse_learning_materials", | ||
ClickedNavBrowseTopics: "clicked_nav_browse_topics", | ||
ClickedNavBrowseDepartments: "clicked_nav_browse_departments", | ||
ClickedNavBrowseProviders: "clicked_nav_browse_providers", | ||
ClickedNavBrowseNew: "clicked_nav_browse_new", | ||
ClickedNavBrowseUpcoming: "clicked_nav_browse_upcoming", | ||
ClickedNavBrowsePopular: "clicked_nav_browse_popular", | ||
ClickedNavBrowseFree: "clicked_nav_browse_free", | ||
ClickedNavBrowseCertificate: "clicked_nav_browse_certificate", | ||
} as const |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.