Commit cb0ea3f1 authored by Justin Domingue's avatar Justin Domingue Committed by GitHub

log an event on max click (#2827)

parent e54ffcc4
......@@ -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(
......
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