diff --git a/features/push-notifications/api/src/main/java/com/tangem/features/pushnotifications/api/analytics/PushNotificationAnalyticEvents.kt b/features/push-notifications/api/src/main/java/com/tangem/features/pushnotifications/api/analytics/PushNotificationAnalyticEvents.kt index ae6f90b7a1..fecdc9bb3d 100644 --- a/features/push-notifications/api/src/main/java/com/tangem/features/pushnotifications/api/analytics/PushNotificationAnalyticEvents.kt +++ b/features/push-notifications/api/src/main/java/com/tangem/features/pushnotifications/api/analytics/PushNotificationAnalyticEvents.kt @@ -26,6 +26,15 @@ sealed class PushNotificationAnalyticEvents( ), ) + data class ButtonLater( + val source: AnalyticsParam.ScreensSources, + ) : PushNotificationAnalyticEvents( + event = "Button - Later", + params = mapOf( + AnalyticsParam.SOURCE to source.value, + ), + ) + data class PermissionStatus( val isAllowed: Boolean, ) : PushNotificationAnalyticEvents( diff --git a/features/push-notifications/impl/src/main/java/com/tangem/features/pushnotifications/impl/presentation/viewmodel/PushNotificationViewModel.kt b/features/push-notifications/impl/src/main/java/com/tangem/features/pushnotifications/impl/presentation/viewmodel/PushNotificationViewModel.kt index 5b62923bbb..b760936b5b 100644 --- a/features/push-notifications/impl/src/main/java/com/tangem/features/pushnotifications/impl/presentation/viewmodel/PushNotificationViewModel.kt +++ b/features/push-notifications/impl/src/main/java/com/tangem/features/pushnotifications/impl/presentation/viewmodel/PushNotificationViewModel.kt @@ -30,7 +30,7 @@ internal class PushNotificationViewModel @Inject constructor( override fun onNeverRequest() { analyticHandler.send( - PushNotificationAnalyticEvents.ButtonCancel(AnalyticsParam.ScreensSources.Stories), + PushNotificationAnalyticEvents.ButtonLater(AnalyticsParam.ScreensSources.Stories), ) viewModelScope.launch { neverRequestPermissionUseCase(PUSH_PERMISSION) diff --git a/features/wallet/impl/src/main/java/com/tangem/feature/wallet/presentation/wallet/viewmodels/intents/WalletPushPermissionClickIntents.kt b/features/wallet/impl/src/main/java/com/tangem/feature/wallet/presentation/wallet/viewmodels/intents/WalletPushPermissionClickIntents.kt index 6043a409aa..98560342e5 100644 --- a/features/wallet/impl/src/main/java/com/tangem/feature/wallet/presentation/wallet/viewmodels/intents/WalletPushPermissionClickIntents.kt +++ b/features/wallet/impl/src/main/java/com/tangem/feature/wallet/presentation/wallet/viewmodels/intents/WalletPushPermissionClickIntents.kt @@ -38,7 +38,7 @@ internal class WalletPushPermissionClickIntentsImplementor @Inject constructor( if (isUserDismissedDialog != isUserDismissed) return viewModelScope.launch { analyticsEventHandler.send( - PushNotificationAnalyticEvents.ButtonCancel(AnalyticsParam.ScreensSources.Main), + PushNotificationAnalyticEvents.ButtonLater(AnalyticsParam.ScreensSources.Main), ) neverRequestPermissionUseCase(PUSH_PERMISSION) }