From 3935ed76357a04382ab604c1436f4ce6ccc4afdf Mon Sep 17 00:00:00 2001 From: Tangem Date: Tue, 10 Mar 2026 16:59:07 +0100 Subject: [PATCH] Updated on 2026-08-14 --- .../domain/tangempay/TangemPayAnalyticsEvents.kt | 10 ++++++++++ .../com/tangem/features/details/model/DetailsModel.kt | 2 ++ .../wallet/model/intents/TangemPayClickIntents.kt | 1 + 3 files changed, 13 insertions(+) diff --git a/domain/visa/src/main/kotlin/com/tangem/domain/tangempay/TangemPayAnalyticsEvents.kt b/domain/visa/src/main/kotlin/com/tangem/domain/tangempay/TangemPayAnalyticsEvents.kt index b3de223ee0..f7eb452cc2 100644 --- a/domain/visa/src/main/kotlin/com/tangem/domain/tangempay/TangemPayAnalyticsEvents.kt +++ b/domain/visa/src/main/kotlin/com/tangem/domain/tangempay/TangemPayAnalyticsEvents.kt @@ -191,4 +191,14 @@ sealed class TangemPayAnalyticsEvents( categoryName = "Visa Onboarding", event = "Visa KYC Canceled", ) + + class MainVisaPermanentBannerClicked : TangemPayAnalyticsEvents( + categoryName = "Visa Onboarding", + event = "Visa Permanent Banner Clicked", + ) + + class DetailsVisaPermanentButtonClicked : TangemPayAnalyticsEvents( + categoryName = "Visa Onboarding", + event = "Visa Permanent Button Clicked", + ) } \ No newline at end of file diff --git a/features/details/impl/src/main/kotlin/com/tangem/features/details/model/DetailsModel.kt b/features/details/impl/src/main/kotlin/com/tangem/features/details/model/DetailsModel.kt index 8ebb80ce0b..1cf9bc5fc0 100644 --- a/features/details/impl/src/main/kotlin/com/tangem/features/details/model/DetailsModel.kt +++ b/features/details/impl/src/main/kotlin/com/tangem/features/details/model/DetailsModel.kt @@ -23,6 +23,7 @@ import com.tangem.domain.pay.TangemPayEligibilityManager import com.tangem.domain.redux.LegacyAction import com.tangem.domain.redux.ReduxStateHolder import com.tangem.domain.tangempay.GetTangemPayCustomerIdUseCase +import com.tangem.domain.tangempay.TangemPayAnalyticsEvents import com.tangem.domain.walletconnect.CheckIsWalletConnectAvailableUseCase import com.tangem.domain.wallets.usecase.GenerateBuyTangemCardLinkUseCase import com.tangem.domain.wallets.usecase.GetSelectedWalletSyncUseCase @@ -264,6 +265,7 @@ internal class DetailsModel @Inject constructor( private fun onTangemPayItemClicked() { modelScope.launch { + analyticsEventHandler.send(TangemPayAnalyticsEvents.DetailsVisaPermanentButtonClicked()) val isEligible = tangemPayEligibilityManager.getTangemPayAvailability() if (isEligible) { router.push(AppRoute.TangemPayOnboarding(AppRoute.TangemPayOnboarding.Mode.FromBannerInSettings)) diff --git a/features/wallet/impl/src/main/java/com/tangem/feature/wallet/child/wallet/model/intents/TangemPayClickIntents.kt b/features/wallet/impl/src/main/java/com/tangem/feature/wallet/child/wallet/model/intents/TangemPayClickIntents.kt index 0c3e58467e..debd9cec80 100644 --- a/features/wallet/impl/src/main/java/com/tangem/feature/wallet/child/wallet/model/intents/TangemPayClickIntents.kt +++ b/features/wallet/impl/src/main/java/com/tangem/feature/wallet/child/wallet/model/intents/TangemPayClickIntents.kt @@ -245,6 +245,7 @@ internal class TangemPayClickIntentsImplementor @Inject constructor( override fun onOnboardingBannerClick(userWalletId: UserWalletId) { modelScope.launch { + analyticsEventHandler.send(TangemPayAnalyticsEvents.MainVisaPermanentBannerClicked()) val isEligible = tangemPayEligibilityManager.getTangemPayAvailability() if (isEligible) { router.openTangemPayOnboarding(mode = AppRoute.TangemPayOnboarding.Mode.FromBannerOnMain)