Skip to content

Commit

Permalink
feat(google-analytics): add tx hash to swap events (Uniswap#3854)
Browse files Browse the repository at this point in the history
  • Loading branch information
JFrankfurt authored May 19, 2022
1 parent 83b6eec commit fd964c5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/pages/Swap/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit fd964c5

Please sign in to comment.