Skip to content

Commit

Permalink
Merge pull request #317 from tonkeeper/feature/events
Browse files Browse the repository at this point in the history
Update track events
  • Loading branch information
KuznetsovNikita authored Nov 27, 2024
2 parents 600cb53 + 0431b66 commit 7bc6ffe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/uikit/src/hooks/amplitude.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export const useOpenBrowser = () => {

return useCallback(() => {
if (tracker) {
tracker.track('browser_open', {});
tracker.track('browser_open', { from: 'wallet' });
}
}, [tracker]);
};
Expand All @@ -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]
Expand Down

0 comments on commit 7bc6ffe

Please sign in to comment.