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. 8
      app/scripts/lib/rpc-method-middleware/handlers/log-web3-shim-usage.js

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

Loading…
Cancel
Save