Skip to content

Commit

Permalink
Tracks Audit: Track upgrade banner dismiss action (#3418)
Browse files Browse the repository at this point in the history
  • Loading branch information
mebarbosa authored Jan 8, 2025
1 parent 934a2c9 commit 0865706
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ class ProfileViewModel @Inject constructor(
}

internal fun closeUpgradeProfile() {
tracker.track(AnalyticsEvent.PROFILE_REFRESH_UPGRADE_BANNER_DISMISSED)
settings.upgradeProfileClosed.set(true, updateModifiedAt = false)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ enum class AnalyticsEvent(val key: String) {
PROFILE_ACCOUNT_BUTTON_TAPPED("profile_account_button_tapped"),
PROFILE_SETTINGS_BUTTON_TAPPED("profile_settings_button_tapped"),
PROFILE_REFRESH_BUTTON_TAPPED("profile_refresh_button_tapped"),
PROFILE_REFRESH_UPGRADE_BANNER_DISMISSED("profile_refresh_upgrade_banner_dismissed"),

/* Stats View */
STATS_SHOWN("stats_shown"),
Expand Down

0 comments on commit 0865706

Please sign in to comment.