diff --git a/app/scripts/lib/rpc-method-middleware/handlers/log-web3-shim-usage.js b/app/scripts/lib/rpc-method-middleware/handlers/log-web3-shim-usage.js index 3fb5a5743..8dd1551fd 100644 --- a/app/scripts/lib/rpc-method-middleware/handlers/log-web3-shim-usage.js +++ b/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