Skip to content

Commit 216fdea

Browse files
committed
fix(instrumentation): event for migration v1->v2
1 parent 40e4ce2 commit 216fdea

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/pages/MigrateV1/MigrateV1Exchange.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { TransactionResponse } from '@ethersproject/abstract-provider'
22
import { ChainId, Fraction, JSBI, Percent, Token, TokenAmount, WETH } from '@uniswap/sdk'
33
import React, { useCallback, useMemo, useState } from 'react'
44
import { ArrowLeft } from 'react-feather'
5+
import ReactGA from 'react-ga'
56
import { Redirect, RouteComponentProps } from 'react-router'
67
import { ButtonConfirmed } from '../../components/Button'
78
import { PinkCard, YellowCard, LightCard } from '../../components/Card'
@@ -108,6 +109,12 @@ function V1PairMigration({ liquidityTokenAmount, token }: { liquidityTokenAmount
108109
Math.floor(new Date().getTime() / 1000) + DEFAULT_DEADLINE_FROM_NOW
109110
)
110111
.then((response: TransactionResponse) => {
112+
ReactGA.event({
113+
category: 'Migrate',
114+
action: 'V1->V2',
115+
label: token?.symbol
116+
})
117+
111118
addTransaction(response, {
112119
summary: `Migrate ${token.symbol} liquidity to V2`
113120
})

0 commit comments

Comments
 (0)