Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Original referrer is lost when traffic cop redirect occurs #13593

Closed
alexgibson opened this issue Aug 17, 2023 · 0 comments
Closed

Original referrer is lost when traffic cop redirect occurs #13593

alexgibson opened this issue Aug 17, 2023 · 0 comments
Assignees
Labels
Bug 🐛 Something's not working the way it should

Comments

@alexgibson
Copy link
Member

alexgibson commented Aug 17, 2023

Description

When a traffic cop redirect occurs, the original page referrer is lost, and replaced with the canonical URL where the redirect initiates. We account for this in GA using some custom code here: https://github.com/mozilla/bedrock/blob/main/media/js/base/core-datalayer-page-id.js#L33

It would be useful to preserve this original referrer so that other scripts can reference it, to make sure that the original referrer is preserved more accurately in other places that might use it (Stub attribution, FxA attribution, Glean etc).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 🐛 Something's not working the way it should
Projects
None yet
Development

No branches or pull requests

1 participant