feat(google-analytics): add tx hash to swap events (#3854)
This commit is contained in:
parent
83b6eec271
commit
fd964c5b74
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user