Skip to content

Commit

Permalink
Add referrer as a tag in Sentry browser errors in the help centre (#1304
Browse files Browse the repository at this point in the history
)

We're trying to track down the origin of some 404s we're seeing, hopefully this
might help find the source.
  • Loading branch information
tjmw authored Jan 29, 2024
1 parent 154c820 commit 79cdcd2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/HelpCentrePage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ if (typeof window !== 'undefined' && window.guardian && window.guardian.dsn) {
release: WEBPACK_BUILD || 'local',
environment: window.guardian.domain,
});

Sentry.setTag('gu:referrer', document.referrer || 'none');
}

const element = document.getElementById('app');
Expand Down

0 comments on commit 79cdcd2

Please sign in to comment.