Skip to content

Commit

Permalink
Production Release
Browse files Browse the repository at this point in the history
Production Release
  • Loading branch information
tcheee authored Nov 5, 2024
2 parents 0c98ba4 + 946ef65 commit 4a643c5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/hooks/useJumperTracking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ interface JumperDataTrackEventProps {
value: number;
walletAddress?: string;
walletProvider?: string;
referrer?: string;
}

const track = async (data: object, path: string) => {
Expand Down Expand Up @@ -75,6 +76,7 @@ export interface JumperDataTrackTransactionProps {
url: string;
walletAddress?: string;
walletProvider?: string;
referrer?: string;
}

export const useJumperTracking = () => {
Expand All @@ -93,6 +95,7 @@ export const useJumperTracking = () => {
value: data.value,
walletAddress: data.walletAddress,
walletProvider: data.walletProvider,
referrer: data.referrer,
},
JUMPER_ANALYTICS_EVENT,
);
Expand Down Expand Up @@ -127,6 +130,7 @@ export const useJumperTracking = () => {
url: data.url,
walletProvider: data.walletProvider,
walletAddress: data.walletAddress,
referrer: data.referrer,
};
await track(transactionData, JUMPER_ANALYTICS_TRANSACTION);
};
Expand Down

1 comment on commit 4a643c5

@vercel
Copy link

@vercel vercel bot commented on 4a643c5 Nov 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.