Skip to content

Commit b73ec3d

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

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -240,10 +240,6 @@ class Web3Auth(web3AuthOptions: Web3AuthOptions, context: Context) : WebViewResu
240240
"whitelabel_logo_light_enabled" to (web3AuthOption.whiteLabel?.logoLight != null),
241241
"whitelabel_logo_dark_enabled" to (web3AuthOption.whiteLabel?.logoDark != null),
242242
"whitelabel_theme_mode" to (web3AuthOption.whiteLabel?.theme),
243-
"modal_auth_connector_login_methods" to listOf(
244-
"email_passwordless",
245-
"sms_passwordless"
246-
),
247243
"ui_login_methods_order" to listOf(
248244
"google",
249245
"twitter",
@@ -289,7 +285,7 @@ class Web3Auth(web3AuthOptions: Web3AuthOptions, context: Context) : WebViewResu
289285
AnalyticsManager.trackEvent(
290286
AnalyticsEvents.SDK_INITIALIZATION_FAILED,
291287
mutableMapOf<String, Any>(
292-
"integration_type" to "android",
288+
"integration_type" to AnalyticsSdkType.ANDROID,
293289
"dapp_url" to "this.loginParams?.dappUrl.toString()",
294290
"duration" to System.currentTimeMillis() - startTime,
295291
"error_message" to "Fetch project config API error. ${err.message}"
@@ -768,7 +764,7 @@ class Web3Auth(web3AuthOptions: Web3AuthOptions, context: Context) : WebViewResu
768764
fun manageMFA(loginParams: LoginParams? = null): CompletableFuture<Boolean> {
769765
actionType = "manage_mfa"
770766
AnalyticsManager.trackEvent(
771-
AnalyticsEvents.MFA_MANAGEMENT_SELECTED,
767+
AnalyticsEvents.MFA_MANAGEMENT_STARTED,
772768
mutableMapOf<String, Any>(
773769
"integration_type" to "android",
774770
"dapp_url" to this.loginParams?.dappUrl.toString(),

core/src/main/java/com/web3auth/core/analytics/AnalyticsConstant.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ object AnalyticsEvents {
99
const val MFA_ENABLEMENT_STARTED = "MFA Enablement Started"
1010
const val MFA_ENABLEMENT_COMPLETED = "MFA Enablement Completed"
1111
const val MFA_ENABLEMENT_FAILED = "MFA Enablement Failed"
12-
const val MFA_MANAGEMENT_SELECTED = "MFA Management Selected"
12+
const val MFA_MANAGEMENT_STARTED = "MFA Management Started"
1313
const val MFA_MANAGEMENT_FAILED = "MFA Management Failed"
1414
const val MFA_MANAGEMENT_COMPLETED = "MFA Management Completed"
1515
const val WALLET_UI_CLICKED = "Wallet UI Clicked"

0 commit comments

Comments
 (0)