Skip to content

Commit

Permalink
[NO CHANGELOGS] [Add Funds Widget] Add more add funds widget analytics (
Browse files Browse the repository at this point in the history
  • Loading branch information
jiyounglee authored Oct 14, 2024
1 parent c951308 commit f74c215
Showing 1 changed file with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 ?? '',
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit f74c215

Please sign in to comment.