Skip to content

Commit

Permalink
track event when tapping on discover podcasts
Browse files Browse the repository at this point in the history
  • Loading branch information
mebarbosa committed Dec 27, 2024
1 parent db30b20 commit 4d14f8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,7 @@ class PodcastsFragment : BaseFragment(), FolderAdapter.ClickListener, PodcastTou
}

binding.btnDiscover.setOnClickListener {
(activity as FragmentHostListener).openTab(VR.id.navigation_discover)
}

binding.btnDiscover.setOnClickListener {
analyticsTracker.track(AnalyticsEvent.PODCASTS_LIST_DISCOVER_BUTTON_TAPPED)
(activity as FragmentHostListener).openTab(VR.id.navigation_discover)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ enum class AnalyticsEvent(val key: String) {
PODCASTS_LIST_SORT_ORDER_CHANGED("podcasts_list_sort_order_changed"),
PODCASTS_LIST_LAYOUT_CHANGED("podcasts_list_layout_changed"),
PODCASTS_LIST_BADGES_CHANGED("podcasts_list_badges_changed"),
PODCASTS_LIST_DISCOVER_BUTTON_TAPPED("podcasts_list_discover_button_tapped"),

/* Tab bar items */
PODCASTS_TAB_OPENED("podcasts_tab_opened"),
Expand Down

0 comments on commit 4d14f8e

Please sign in to comment.