From 94dfc10889e0be63ffe0664ef0ae9fd821c6da31 Mon Sep 17 00:00:00 2001 From: Hodor Date: Tue, 5 Nov 2024 15:42:38 +0800 Subject: [PATCH] fix: swap stats --- src/ui/utils/sendTransaction.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/ui/utils/sendTransaction.ts b/src/ui/utils/sendTransaction.ts index 9fb9afdab74..426fac1e2fb 100644 --- a/src/ui/utils/sendTransaction.ts +++ b/src/ui/utils/sendTransaction.ts @@ -445,6 +445,16 @@ export const sendTransaction = async ({ } }; + wallet.reportStats('signTransaction', { + type: currentAccount.brandName, + category: KEYRING_CATEGORY_MAP[currentAccount.type], + chainId: chain.serverId, + createdBy: ga ? 'rabby' : 'dapp', + source: ga?.source || '', + trigger: ga?.trigger || '', + networkType: chain?.isTestnet ? 'Custom Network' : 'Integrated Network', + }); + // submit tx let hash = ''; try {