Updated on 2026-08-14

This commit is contained in:
Tangem 2026-05-25 20:30:23 +05:00
parent 4381dc75dd
commit 801240525e
4 changed files with 14 additions and 2 deletions

View file

@ -34,6 +34,16 @@ sealed class TangemPayAnalyticsEvents(
event = "Visa Issuing Banner Displayed",
)
class PermanentBannerShowed : TangemPayAnalyticsEvents(
categoryName = "Visa Onboarding",
event = "Visa Permanent Banner Showed",
)
class PermanentButtonShowed : TangemPayAnalyticsEvents(
categoryName = "Visa Onboarding",
event = "Visa Permanent Button Showed",
)
class MainScreenOpened : TangemPayAnalyticsEvents(
categoryName = "Visa Screen",
event = "Visa Main Screen Opened",

View file

@ -264,6 +264,7 @@ internal class DetailsModel @Inject constructor(
)
.isNotEmpty()
if (isEligible) {
analyticsEventHandler.send(TangemPayAnalyticsEvents.PermanentButtonShowed())
items.update { itemsBuilder.addTangemPayItem(items = it, onClick = ::onTangemPayItemClicked) }
}
}

View file

@ -4,6 +4,7 @@ import com.tangem.core.analytics.api.AnalyticsEventHandler
import com.tangem.core.analytics.models.AnalyticsEvent
import com.tangem.core.analytics.models.AnalyticsParam
import com.tangem.core.decompose.di.ModelScoped
import com.tangem.domain.tangempay.TangemPayAnalyticsEvents
import com.tangem.feature.wallet.child.wallet.model.WalletActivationBannerType
import com.tangem.feature.wallet.presentation.wallet.analytics.WalletScreenAnalyticsEvent.MainScreen
import com.tangem.feature.wallet.presentation.wallet.analytics.WalletScreenAnalyticsEvent.MainScreen.*
@ -98,7 +99,7 @@ internal class WalletWarningsAnalyticsSender @Inject constructor(
is WalletNotification.Warning.TangemPayUnreachable -> null
is WalletNotification.UpgradeHotWalletPromo -> null
is WalletNotification.AssetsDiscoveryCompleted -> null
is WalletNotification.CreateTangemPayAccount -> null
is WalletNotification.CreateTangemPayAccount -> TangemPayAnalyticsEvents.PermanentBannerShowed()
}
}

View file

@ -256,7 +256,7 @@ internal class GetWalletNotificationsFactory @Inject constructor(
onRefreshClick = { walletClickIntents.onRefreshPayToken(userWallet) },
shouldShowProgress = false,
)
is PaymentAccountStatusValue.NotCreated -> null // TODO(Main redesign)
is PaymentAccountStatusValue.NotCreated -> null // TODO(Main redesign) and analytics PermanentBannerShowed
is PaymentAccountStatusValue.Error.Unavailable -> WalletNotificationUM.TangemPayUnreachable
is PaymentAccountStatusValue.Error.CardIssueFailed,
is PaymentAccountStatusValue.Error.ExposedDevice,