feat(google-analytics): add tx hash to swap events (#3854)

This commit is contained in:
Jordan Frankfurt 2022-05-19 15:30:04 -05:00 committed by GitHub
parent 83b6eec271
commit fd964c5b74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -286,6 +286,11 @@ export default function Swap({ history }: RouteComponentProps) {
swapCallback() swapCallback()
.then((hash) => { .then((hash) => {
setSwapState({ attemptingTxn: false, tradeToConfirm, showConfirm, swapErrorMessage: undefined, txHash: hash }) setSwapState({ attemptingTxn: false, tradeToConfirm, showConfirm, swapErrorMessage: undefined, txHash: hash })
ReactGA.event({
category: 'Swap',
action: 'transaction hash',
label: hash,
})
ReactGA.event({ ReactGA.event({
category: 'Swap', category: 'Swap',
action: action: