From aaccd8a8d1f34edbf29e28a5c3dbdcf34b83bb6f Mon Sep 17 00:00:00 2001 From: Nikita Kuznetsov Date: Tue, 26 Nov 2024 17:14:27 +0100 Subject: [PATCH 1/2] Update event key --- packages/uikit/src/hooks/amplitude.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/uikit/src/hooks/amplitude.tsx b/packages/uikit/src/hooks/amplitude.tsx index 7d0ac6f6a..be4937031 100644 --- a/packages/uikit/src/hooks/amplitude.tsx +++ b/packages/uikit/src/hooks/amplitude.tsx @@ -98,9 +98,9 @@ export const useClickBrowser = () => { const tracker = useContext(AmplitudeAnalyticsContext); return useCallback( - (dapp: string, source: string) => { + (url: string, source: string) => { if (tracker) { - tracker.track('click_dapp', { dapp, source }); + tracker.track('click_dapp', { url, source }); } }, [tracker] From 0431b66cd7d1f9866a57494a9849e8961662272d Mon Sep 17 00:00:00 2001 From: Nikita Kuznetsov Date: Tue, 26 Nov 2024 17:15:48 +0100 Subject: [PATCH 2/2] Add from for browser_open --- packages/uikit/src/hooks/amplitude.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/uikit/src/hooks/amplitude.tsx b/packages/uikit/src/hooks/amplitude.tsx index be4937031..09fd78aeb 100644 --- a/packages/uikit/src/hooks/amplitude.tsx +++ b/packages/uikit/src/hooks/amplitude.tsx @@ -89,7 +89,7 @@ export const useOpenBrowser = () => { return useCallback(() => { if (tracker) { - tracker.track('browser_open', {}); + tracker.track('browser_open', { from: 'wallet' }); } }, [tracker]); };