Skip to content

Commit

Permalink
Merge pull request #29 from MetaMask/more-analytics
Browse files Browse the repository at this point in the history
Update analytics
  • Loading branch information
elefantel authored Sep 12, 2023
2 parents a5eafab + f6e684b commit bc1c52e
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 bc1c52e

Please sign in to comment.