Skip to content

Commit

Permalink
Staging Release
Browse files Browse the repository at this point in the history
Staging Release
  • Loading branch information
tcheee authored Aug 29, 2024
2 parents 77af057 + dc60b81 commit 277a78d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/hooks/userTracking/useUserTracking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,10 @@ export function useUserTracking() {
data: data || {},
isConnected: account?.isConnected || false,
walletAddress: account?.address || 'not_connected',
browserFingerprint: fp,
browserFingerprint: fp || 'unknown',
isMobile: !isDesktop,
sessionId: sessionId || 'unknown',
url: window?.location?.href,
url: window?.location?.href || process.env.NEXT_PUBLIC_SITE_URL,
};
await jumperTrackEvent(eventData);
} catch (error) {
Expand Down Expand Up @@ -199,8 +199,8 @@ export function useUserTracking() {
errorCode: data[TrackingEventParameter.ErrorCode],
errorMessage: data[TrackingEventParameter.ErrorMessage],
action: data[TrackingEventParameter.Action] || '',
url: window?.location?.href,
browserFingerprint: fp,
url: window?.location?.href || process.env.NEXT_PUBLIC_SITE_URL,
browserFingerprint: fp || 'unknown',
};
await jumperTrackTransaction(transactionData);
}
Expand All @@ -214,7 +214,7 @@ export function useUserTracking() {
});
}
},
[account?.address, jumperTrackTransaction, sessionId],
[account?.address, fp, jumperTrackTransaction, sessionId],
);

return {
Expand Down

0 comments on commit 277a78d

Please sign in to comment.