Skip to content

Commit

Permalink
log an event on max click (#2827)
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Domingue authored Nov 22, 2021
1 parent e54ffcc commit cb0ea3f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pages/Swap/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,10 @@ export default function Swap({ history }: RouteComponentProps) {

const handleMaxInput = useCallback(() => {
maxInputAmount && onUserInput(Field.INPUT, maxInputAmount.toExact())
ReactGA.event({
category: 'Swap',
action: 'Max',
})
}, [maxInputAmount, onUserInput])

const handleOutputSelect = useCallback(
Expand Down

0 comments on commit cb0ea3f

Please sign in to comment.