Skip to content

Commit

Permalink
fix(analytics): initial route only used in report analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
kyranjamie committed Sep 3, 2024
1 parent a0b30eb commit a253390
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/common/app-analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ const defaultStaticAnalyticContext = {
ip: '0.0.0.0',
platform: 'web',
product: 'extension',
route: location.pathname,
version: VERSION,
...(flow && { flow }),
...(origin && { origin }),
Expand All @@ -47,6 +46,7 @@ function getDerivedStateAnalyticsContext() {
const appState = getAnalyticsStateProps();

return {
route: location.pathname,
network: appState.currentNetwork.name.toLowerCase(),
usingDefaultHiroApi: isHiroApiUrl(appState.currentNetwork.chain.stacks.url),
walletType: appState.walletType,
Expand Down

0 comments on commit a253390

Please sign in to comment.