Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

UTM removal is broken for React pages #6052

Closed
escattone opened this issue Oct 25, 2019 · 1 comment · Fixed by #6053
Closed

UTM removal is broken for React pages #6052

escattone opened this issue Oct 25, 2019 · 1 comment · Fixed by #6053
Assignees
Labels
status: needs triage Status: Untriaged

Comments

@escattone
Copy link
Contributor

escattone commented Oct 25, 2019

Summary
The GA hitCallback function on the ga('send', 'pageview', ...) call, which removes the UTM query parameters in the loaded URL, is broken for React pages.

Steps To Reproduce (STR)
Go to https://developer.mozilla.org/en-US/docs/Web/HTML?utm_xxx

Actual behavior
After the page loads, the URL remains https://developer.mozilla.org/en-US/docs/Web/HTML?utm_xxx

Expected behavior
After the page loads, the URL should be adjusted to https://developer.mozilla.org/en-US/docs/Web/HTML (the utm_* query parameter should have been removed).

Additional context
You can observe the correct behavior if you try https://wiki.developer.mozilla.org/en-US/docs/Web/HTML?utm_xxx

@escattone escattone added the status: needs triage Status: Untriaged label Oct 25, 2019
@escattone escattone changed the title GA hitCallback function on the pageview send is broken for React pages UTM removal is broken for React pages Oct 25, 2019
@escattone
Copy link
Contributor Author

This discovery arose from the work on #5986.

@escattone escattone self-assigned this Oct 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: needs triage Status: Untriaged
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant