Skip to content

Commit 8f12c88

Browse files
committed
feat: Update ws analytics event
Signed-off-by: Gaurav Goel <[email protected]>
1 parent 3c2b7dc commit 8f12c88

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

core/src/main/java/com/web3auth/core/Web3Auth.kt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,11 @@ class Web3Auth(web3AuthOptions: Web3AuthOptions, context: Context) : WebViewResu
925925
path: String? = "wallet",
926926
): CompletableFuture<Void> {
927927
AnalyticsManager.trackEvent(
928-
AnalyticsEvents.WALLET_UI_CLICKED
928+
AnalyticsEvents.WALLET_UI_CLICKED,
929+
mutableMapOf<String, Any>(
930+
"integration_type" to "android",
931+
"dapp_url" to this.loginParams?.dappUrl.toString(),
932+
)
929933
)
930934
val launchWalletServiceCF: CompletableFuture<Void> = CompletableFuture()
931935
val savedSessionId = SessionManager.getSessionIdFromStorage()
@@ -997,6 +1001,8 @@ class Web3Auth(web3AuthOptions: Web3AuthOptions, context: Context) : WebViewResu
9971001
AnalyticsManager.trackEvent(
9981002
AnalyticsEvents.WALLET_SERVICES_FAILED,
9991003
mutableMapOf<String, Any>(
1004+
"integration_type" to "android",
1005+
"dapp_url" to this.loginParams?.dappUrl.toString(),
10001006
"duration" to System.currentTimeMillis() - startTime,
10011007
"error" to "Wallet Services Error: Session ID is not found. Please login first."
10021008
)

0 commit comments

Comments
 (0)