|
|
@ -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 |
|
|
|