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

feat: enable the ability to overwrite the referrer #551

Merged
merged 2 commits into from
Aug 24, 2022
Merged

Conversation

yuhao900914
Copy link
Contributor

Summary

https://discourse.amplitude.com/t/incorrectly-logged-referrer-due-to-cookie-control/7164
This pr for providing the ability to let customers overwrite the referrer info.
The use case:
Customer need to defer the initialization with the cookie control. Before accepting cookies, the users might redirect to other pages. And the document.referrer will be set to the last page they were on. So they will lose the original referrer info after enabling tracking.
This pr enable customer using this SDK to pass an overwrite value through url parameter in order to overwrite the referrer info.

Checklist

  • Does your PR title have the correct title format?
  • Does your PR have a breaking change?:

@lgtm-com
Copy link

lgtm-com bot commented Aug 23, 2022

This pull request introduces 2 alerts when merging e98b248 into 385c8f4 - view on LGTM.com

new alerts:

  • 2 for Expression has no effect

@yuhao900914 yuhao900914 merged commit 03c0a89 into main Aug 24, 2022
@yuhao900914 yuhao900914 deleted the overwrite-refer branch August 24, 2022 18:59
github-actions bot pushed a commit that referenced this pull request Aug 24, 2022
# [8.20.0](v8.19.0...v8.20.0) (2022-08-24)

### Features

* enable the ability to overwrite the referrer ([#551](#551)) ([03c0a89](03c0a89))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants