From f74c2151e003f25965332b61b2b4c6f44457cd7f Mon Sep 17 00:00:00 2001 From: Ji Young Lee <641712+jiyounglee@users.noreply.github.com> Date: Tue, 15 Oct 2024 09:46:27 +1100 Subject: [PATCH] [NO CHANGELOGS] [Add Funds Widget] Add more add funds widget analytics (#2302) --- .../src/widgets/add-funds/views/AddFunds.tsx | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/packages/checkout/widgets-lib/src/widgets/add-funds/views/AddFunds.tsx b/packages/checkout/widgets-lib/src/widgets/add-funds/views/AddFunds.tsx index 13cfccfad3..0aceb49186 100644 --- a/packages/checkout/widgets-lib/src/widgets/add-funds/views/AddFunds.tsx +++ b/packages/checkout/widgets-lib/src/widgets/add-funds/views/AddFunds.tsx @@ -385,6 +385,16 @@ export function AddFunds({ }, []); const handleCardClick = () => { + track({ + userJourney: UserJourney.ADD_FUNDS, + screen: 'InputScreen', + control: 'PayWithCardMenu', + controlType: 'MenuItem', + extras: { + tokenAddress: selectedToken?.address ?? '', + amount: selectedAmount ?? '', + }, + }); const data = { tokenAddress: selectedToken?.address ?? '', amount: selectedAmount ?? '', @@ -496,6 +506,18 @@ export function AddFunds({ provider: Web3Provider, providerInfo: EIP6963ProviderInfo, ) => { + track({ + userJourney: UserJourney.ADD_FUNDS, + screen: 'InputScreen', + control: 'WalletsMenu', + controlType: 'MenuItem', + extras: { + providerType, + providerName: providerInfo.name, + providerRdns: providerInfo.rdns, + providerUuid: providerInfo.uuid, + }, + }); sendConnectProviderSuccessEvent( eventTarget, providerType,