Updated on 2026-08-14

This commit is contained in:
Tangem 2026-05-04 15:18:02 +04:00
parent 85545863e3
commit 926e89e975
16 changed files with 158 additions and 223 deletions

View file

@ -2,6 +2,7 @@ package com.tangem.domain.card.analytics
import com.tangem.core.analytics.models.AnalyticsEvent
import com.tangem.core.analytics.models.AnalyticsParam
import com.tangem.core.analytics.models.CriticalEvent
import com.tangem.core.analytics.models.getReferralParams
sealed class IntroductionProcess(
@ -9,11 +10,17 @@ sealed class IntroductionProcess(
params: Map<String, String> = emptyMap(),
) : AnalyticsEvent("Introduction Process", event, params) {
class ScreenOpened : IntroductionProcess("Introduction Process Screen Opened")
/**
* Tracks the user opening the Introduction Process screen.
*/
class ScreenOpened : IntroductionProcess("Introduction Process Screen Opened"), CriticalEvent
class ButtonTokensList : IntroductionProcess("Button - Tokens List")
class ButtonBuyCards : IntroductionProcess("Button - Buy Cards")
class ButtonScanCardLegacy : IntroductionProcess("Button - Scan Card")
/**
* Tracks opening the Create Wallet introduction screen.
*/
class CreateWalletIntroScreenOpened(
referralId: String?,
) : IntroductionProcess(
@ -21,7 +28,7 @@ sealed class IntroductionProcess(
params = buildMap {
putAll(getReferralParams(referralId))
},
)
), CriticalEvent
class ButtonScanCard(
val source: AnalyticsParam.ScreensSources,