Fix logWeb3ShimUsage metrics (#10286)

feature/default_network_editable
Erik Marks 4 years ago committed by GitHub
parent bd57705b5f
commit 7ebab83e40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 14
      app/scripts/lib/rpc-method-middleware/handlers/log-web3-shim-usage.js

@ -40,16 +40,18 @@ function logWeb3ShimUsageHandler(
if (getWeb3ShimUsageState(origin) === undefined) {
setWeb3ShimUsageRecorded(origin)
sendMetrics({
event: `Website Accessed window.web3 Shim`,
category: 'inpage_provider',
eventContext: {
sendMetrics(
{
event: `Website Accessed window.web3 Shim`,
category: 'inpage_provider',
referrer: {
url: origin,
},
},
excludeMetaMetricsId: true,
})
{
excludeMetaMetricsId: true,
},
)
}
res.result = true

Loading…
Cancel
Save