From fd964c5b74fab77d1c3ec148a502d196e66492fe Mon Sep 17 00:00:00 2001 From: Jordan Frankfurt Date: Thu, 19 May 2022 15:30:04 -0500 Subject: [PATCH] feat(google-analytics): add tx hash to swap events (#3854) --- src/pages/Swap/index.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/pages/Swap/index.tsx b/src/pages/Swap/index.tsx index 7ce767d3de..c1e83603d6 100644 --- a/src/pages/Swap/index.tsx +++ b/src/pages/Swap/index.tsx @@ -286,6 +286,11 @@ export default function Swap({ history }: RouteComponentProps) { swapCallback() .then((hash) => { setSwapState({ attemptingTxn: false, tradeToConfirm, showConfirm, swapErrorMessage: undefined, txHash: hash }) + ReactGA.event({ + category: 'Swap', + action: 'transaction hash', + label: hash, + }) ReactGA.event({ category: 'Swap', action: