TP-12345 | Shankar | Added NaviPay First Transaction Event (#11215)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
*
|
||||
* * Copyright © 2021-2023 by Navi Technologies Limited
|
||||
* * Copyright © 2021-2024 by Navi Technologies Limited
|
||||
* * All rights reserved. Strictly confidential
|
||||
*
|
||||
*/
|
||||
@@ -146,6 +146,7 @@ object NaviAnalyticsHelper {
|
||||
it.add("gold_vault_verification_failed_bottomsheet")
|
||||
it.add("gold_vault_btn_verification_failed_bottomsheet_try_again")
|
||||
it.add("gold_vault_btn_verify_now")
|
||||
it.add("NaviPay_First_Transaction")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -152,9 +152,7 @@ object NaviTrackEvent {
|
||||
MoengageUtil.trackEvent(eventName, eventValues, applicationContext)
|
||||
if (isNeededForFirebase) FcmAnalyticsUtil.analytics.trackEvent(eventName, eventValues)
|
||||
PulseManager.trackEvent(eventName, eventValues)
|
||||
if (isNeededForAppsflyer)
|
||||
AppsFlyerUtil.instance.trackEvent(applicationContext, eventName, eventValues)
|
||||
if (isEventWhiteListedForAppsflyer(eventName)) {
|
||||
if (isNeededForAppsflyer || isEventWhiteListedForAppsflyer(eventName)) {
|
||||
AppsFlyerUtil.instance.trackEvent(applicationContext, eventName, eventValues)
|
||||
}
|
||||
Timber.d(eventName.plus(" ").plus(eventValues?.toString()))
|
||||
|
||||
@@ -1670,6 +1670,10 @@ class NaviPayAnalytics private constructor() {
|
||||
)
|
||||
}
|
||||
|
||||
fun onNaviPayFirstTransaction() {
|
||||
NaviTrackEvent.trackEvent("NaviPay_First_Transaction")
|
||||
}
|
||||
|
||||
fun onShareReceiptClicked(source: String) {
|
||||
NaviTrackEvent.trackEventOnClickStream(
|
||||
"NaviPay_TransactionDetailSection_ShareReceipt_Clicked",
|
||||
@@ -2580,6 +2584,10 @@ class NaviPayAnalytics private constructor() {
|
||||
eventValues = mapOf("naviPaySessionId" to naviPaySessionId.orEmpty())
|
||||
)
|
||||
}
|
||||
|
||||
fun onNaviPayFirstTransaction() {
|
||||
NaviTrackEvent.trackEvent("NaviPay_First_Transaction")
|
||||
}
|
||||
}
|
||||
|
||||
inner class NaviPayUPILite {
|
||||
|
||||
@@ -565,6 +565,7 @@ constructor(
|
||||
transactionStatusData: TransactionStatusResponse
|
||||
) {
|
||||
if (transactionStatus == TransactionStatus.SUCCESS && isTransactionEligibleForNpsComms) {
|
||||
naviPayAnalytics.onNaviPayFirstTransaction()
|
||||
val npsCommsAPIResponse =
|
||||
commonRepository.sendNpsComms(
|
||||
npsCommsRequest =
|
||||
|
||||
@@ -810,6 +810,7 @@ constructor(
|
||||
if (
|
||||
transactionStatus == TransactionStatus.SUCCESS && isTransactionEligibleForNpsComms
|
||||
) {
|
||||
naviPayAnalytics.onNaviPayFirstTransaction()
|
||||
val npsCommsAPIResponse =
|
||||
commonRepository.sendNpsComms(
|
||||
npsCommsRequest =
|
||||
|
||||
@@ -1783,6 +1783,7 @@ constructor(
|
||||
TransactionStatus.toTransactionStatus(status = sendMoneyResponse.status)
|
||||
|
||||
if (isTransactionEligibleForNpsComms) {
|
||||
naviPayAnalytics.onNaviPayFirstTransaction()
|
||||
val npsCommsAPIResponse =
|
||||
commonRepository.sendNpsComms(
|
||||
npsCommsRequest =
|
||||
|
||||
Reference in New Issue
Block a user