Updated on 2026-08-14

This commit is contained in:
Tangem 2026-02-03 15:31:18 +04:00
parent df39e1703c
commit 343cf1ed20
10 changed files with 38 additions and 7 deletions

View file

@ -10,6 +10,7 @@ import com.tangem.core.analytics.models.event.MainScreenAnalyticsEvent
import com.tangem.core.analytics.utils.TrackingContextProxy
import com.tangem.core.decompose.di.ModelScoped
import com.tangem.core.decompose.model.Model
import com.tangem.datasource.local.appsflyer.AppsFlyerStore
import com.tangem.domain.account.featuretoggle.AccountsFeatureToggles
import com.tangem.domain.account.supplier.SingleAccountListSupplier
import com.tangem.domain.account.usecase.IsAccountsModeEnabledUseCase
@ -105,6 +106,7 @@ internal class WalletModel @Inject constructor(
private val isAccountsModeEnabledUseCase: IsAccountsModeEnabledUseCase,
private val feedFeatureToggle: FeedFeatureToggle,
private val bindRefcodeWithWalletUseCase: BindRefcodeWithWalletUseCase,
private val appsFlyerStore: AppsFlyerStore,
val screenLifecycleProvider: ScreenLifecycleProvider,
val innerWalletRouter: InnerWalletRouter,
) : Model() {
@ -235,6 +237,7 @@ internal class WalletModel @Inject constructor(
accountsCount = accountsCount,
theme = theme.value,
isImported = selectedWallet.isImported(),
referralId = appsFlyerStore.get()?.refcode,
),
)
}

View file

@ -1,9 +1,6 @@
package com.tangem.feature.wallet.presentation.wallet.analytics
import com.tangem.core.analytics.models.AnalyticsEvent
import com.tangem.core.analytics.models.AnalyticsParam
import com.tangem.core.analytics.models.AppsFlyerIncludedEvent
import com.tangem.core.analytics.models.OneTimeAnalyticsEvent
import com.tangem.core.analytics.models.*
import com.tangem.domain.models.wallet.UserWalletId
sealed class WalletScreenAnalyticsEvent {
@ -59,6 +56,7 @@ sealed class WalletScreenAnalyticsEvent {
private val accountsCount: Int?,
val theme: String,
val isImported: Boolean,
val referralId: String?,
) : MainScreen(
event = "Screen opened",
params = buildMap {
@ -71,6 +69,7 @@ sealed class WalletScreenAnalyticsEvent {
"Seedless"
}
put("Wallet Type", seedPhrase)
putAll(getReferralParams(referralId))
},
), AppsFlyerIncludedEvent