Skip to content

Commit

Permalink
Tracks Audit: Track Crash Report Event (#3417)
Browse files Browse the repository at this point in the history
  • Loading branch information
mebarbosa authored Jan 9, 2025
1 parent a52dcf4 commit 052dafd
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 @@ -22,6 +22,7 @@ class UserAnalyticsSettings @Inject constructor(
}

fun updateCrashReportsSetting(enabled: Boolean) {
analyticsTracker.track(AnalyticsEvent.CRASH_REPORTS_TOGGLED, mapOf("enabled" to enabled))
settings.sendCrashReports.set(enabled, updateModifiedAt = true)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ enum class AnalyticsEvent(val key: String) {
PRIVACY_SHOWN("privacy_shown"),
ANALYTICS_OPT_IN("analytics_opt_in"),
ANALYTICS_OPT_OUT("analytics_opt_out"),
CRASH_REPORTS_TOGGLED("crash_reports_toggled"),
SETTINGS_SHOW_PRIVACY_POLICY("settings_show_privacy_policy"),

/* Filters */
Expand Down

0 comments on commit 052dafd

Please sign in to comment.