From 7a4eece92d52577b71ece56ab7b1d44288e394be Mon Sep 17 00:00:00 2001 From: Mark Stacey Date: Wed, 13 May 2020 10:12:07 -0300 Subject: [PATCH] Fix Matomo dimension IDs (#8579) The IDs for the `numberOfTokens` and `numberOfAccounts` Action Dimensions were swapped. These are the correct IDs. We'll have to consider that these are swapped when viewing any pre-v8.0.0 metrics. --- ui/app/helpers/utils/metametrics.util.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/app/helpers/utils/metametrics.util.js b/ui/app/helpers/utils/metametrics.util.js index 07d47dd57..f0ec22496 100644 --- a/ui/app/helpers/utils/metametrics.util.js +++ b/ui/app/helpers/utils/metametrics.util.js @@ -53,8 +53,8 @@ const METAMETRICS_CUSTOM_NETWORK = 'network' const METAMETRICS_CUSTOM_ENVIRONMENT_TYPE = 'environmentType' const METAMETRICS_CUSTOM_ACTIVE_CURRENCY = 'activeCurrency' const METAMETRICS_CUSTOM_ACCOUNT_TYPE = 'accountType' -const METAMETRICS_CUSTOM_NUMBER_OF_TOKENS = 'numberOfTokens' const METAMETRICS_CUSTOM_NUMBER_OF_ACCOUNTS = 'numberOfAccounts' +const METAMETRICS_CUSTOM_NUMBER_OF_TOKENS = 'numberOfTokens' const METAMETRICS_CUSTOM_VERSION = 'version' const customDimensionsNameIdMap = { @@ -62,8 +62,8 @@ const customDimensionsNameIdMap = { [METAMETRICS_CUSTOM_ENVIRONMENT_TYPE]: 6, [METAMETRICS_CUSTOM_ACTIVE_CURRENCY]: 7, [METAMETRICS_CUSTOM_ACCOUNT_TYPE]: 8, - [METAMETRICS_CUSTOM_NUMBER_OF_TOKENS]: 9, - [METAMETRICS_CUSTOM_NUMBER_OF_ACCOUNTS]: 10, + [METAMETRICS_CUSTOM_NUMBER_OF_ACCOUNTS]: 9, + [METAMETRICS_CUSTOM_NUMBER_OF_TOKENS]: 10, [METAMETRICS_CUSTOM_VERSION]: 11, }