Skip to content

Conversation

@katzino
Copy link
Collaborator

@katzino katzino commented Dec 11, 2025

requested on slack by @mr-rajce as it was missing for python subpages

@katzino katzino added this to the 129th sprint - Web team milestone Dec 11, 2025
@katzino katzino self-assigned this Dec 11, 2025
@katzino katzino added adhoc Ad-hoc unplanned task added during the sprint. t-web Issues with this label are in the ownership of the web team. analytics Issued connected to tracking and analytics. labels Dec 11, 2025
// this forces deferred execution that ensures `window.location` is in sync
setTimeout(() => {
// Don't track page views on development
if (process.env.NODE_ENV === 'production' && window.analytics) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

There is an issue in the backlog not to use process.env here - looking at the logic, I actually think we don't need that check at all, since segment shouldn't get initialised based on this condition in a file above

if (process.env.NODE_ENV !== 'production' && !allowedInDev) {

@katzino katzino merged commit cad5219 into master Dec 15, 2025
28 checks passed
@katzino katzino deleted the feat/segment-analytics branch December 15, 2025 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

adhoc Ad-hoc unplanned task added during the sprint. analytics Issued connected to tracking and analytics. t-web Issues with this label are in the ownership of the web team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants