Commit fd964c5b authored by Jordan Frankfurt's avatar Jordan Frankfurt Committed by GitHub

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

parent 83b6eec2
...@@ -286,6 +286,11 @@ export default function Swap({ history }: RouteComponentProps) { ...@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment