From cb0ea3f14d7c21dbd426aca741cf20f596bf2042 Mon Sep 17 00:00:00 2001 From: Justin Domingue Date: Mon, 22 Nov 2021 09:27:29 -0500 Subject: [PATCH] log an event on max click (#2827) --- src/pages/Swap/index.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pages/Swap/index.tsx b/src/pages/Swap/index.tsx index 24483fbc7d..9c5c56b87e 100644 --- a/src/pages/Swap/index.tsx +++ b/src/pages/Swap/index.tsx @@ -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(