Skip to content

Commit

Permalink
Update analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
elefantel committed Sep 12, 2023
1 parent a5eafab commit f6e684b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ package io.metamask.androidsdk
enum class Event(val value: String) {
SDK_CONNECTION_REQUEST_STARTED("sdk_connect_request_started"),
SDK_CONNECTION_ESTABLISHED("sdk_connection_established"),
SDK_CONNECTION_ACCEPTED("sdk_connection_accepted"),
SDK_CONNECTION_AUTHORIZED("sdk_connection_authorized"),
SDK_CONNECTION_REJECTED("sdk_connection_rejected"),
SDK_CONNECTION_FAILED("sdk_connection_failed"),
SDK_DISCONNECTED("sdk_disconnected")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ class EthereumViewModel @Inject constructor (
communicationClient.trackEvent(Event.SDK_CONNECTION_REJECTED, null)
}
} else {
communicationClient.trackEvent(Event.SDK_CONNECTION_ACCEPTED, null)
communicationClient.trackEvent(Event.SDK_CONNECTION_AUTHORIZED, null)
}
}

Expand All @@ -152,7 +152,7 @@ class EthereumViewModel @Inject constructor (
communicationClient.trackEvent(Event.SDK_CONNECTION_REJECTED, null)
}
} else {
communicationClient.trackEvent(Event.SDK_CONNECTION_ACCEPTED, null)
communicationClient.trackEvent(Event.SDK_CONNECTION_AUTHORIZED, null)
}
callback?.invoke(result)
}
Expand Down

0 comments on commit f6e684b

Please sign in to comment.