From cf9697c948f68e8cf59ec5037c95c581cf380bc4 Mon Sep 17 00:00:00 2001 From: delivan Date: Thu, 22 Sep 2022 01:49:22 +0900 Subject: [PATCH 1/5] Fix a typo --- packages/web/config/user-analytics-v2.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/web/config/user-analytics-v2.ts b/packages/web/config/user-analytics-v2.ts index d0718642c1..7656d6c9ff 100644 --- a/packages/web/config/user-analytics-v2.ts +++ b/packages/web/config/user-analytics-v2.ts @@ -116,7 +116,7 @@ export const EventName = { Assets: { pageViewed: "Assets: Page viewed", depositClicked: "Assets: Deposit clicked", - withdrawClicked: "Assets: Deposit clicked", + withdrawClicked: "Assets: Withdraw clicked", myPoolsCardClicked: "Assets: My pools card clicked", myPoolsMoreClicked: "Assets: My pools more clicked", assetsListFiltered: "Assets: Assets list filtered", From 24f375fe0956db8114120a9493fd740746c107b8 Mon Sep 17 00:00:00 2001 From: delivan Date: Thu, 22 Sep 2022 02:09:35 +0900 Subject: [PATCH 2/5] Add input click in swap event to track --- packages/web/components/input/input-box.tsx | 3 +++ packages/web/components/trade-clipboard/index.tsx | 10 ++++++++++ packages/web/config/user-analytics-v2.ts | 1 + 3 files changed, 14 insertions(+) diff --git a/packages/web/components/input/input-box.tsx b/packages/web/components/input/input-box.tsx index f77f71be9c..5684b77017 100644 --- a/packages/web/components/input/input-box.tsx +++ b/packages/web/components/input/input-box.tsx @@ -25,6 +25,7 @@ interface Props extends InputProps, Disableable, CustomClasses { inputClassName?: string; isAutosize?: boolean; inputRef?: React.MutableRefObject; + onClick?: () => void; } export const InputBox: FunctionComponent = ({ @@ -42,6 +43,7 @@ export const InputBox: FunctionComponent = ({ className, isAutosize, inputRef, + onClick, }) => { const [inputFocused, setInputFocused] = useState(false); @@ -60,6 +62,7 @@ export const InputBox: FunctionComponent = ({ }, className )} + onClick={onClick} >