1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 18:00:18 +01:00

Change MetaMetrics category for background events (#9155)

Background events are now sent in the `Background` category, rather
than `backend`. Conventionally we use the term "background" over
"backend", as it's not really a "backend" in the normal sense since
it's a client background process. Also it's capitalized because all of
the other event categories are capitalized as well.

The metrics URL has been updated to use `background` instead of
`backend` as well, for consistency.

Luckily we don't have to worry about our metrics being disjointed due
to this name change, because the background metrics never worked to
begin with! So there will be none under the old name. The metrics will
be made functional in a separate PR.
This commit is contained in:
Mark Stacey 2020-08-07 13:45:49 -03:00 committed by GitHub
parent f18473a03d
commit 1d84f33dbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ export default function backEndMetaMetricsEvent (metaMaskState, eventData) {
sendMetaMetricsEvent({
...stateEventData,
...eventData,
url: METAMETRICS_TRACKING_URL + '/backend',
url: METAMETRICS_TRACKING_URL + '/background',
})
}
}

View File

@ -257,7 +257,7 @@ export default class MetamaskController extends EventEmitter {
errorMessage: txMeta.simulationFails?.reason,
},
eventOpts: {
category: 'backend',
category: 'Background',
action: 'Transactions',
name: 'On Chain Failure',
},