Skip to content

Conversation

@danieljackins
Copy link
Contributor

@danieljackins danieljackins commented Oct 15, 2021

What does this PR do?

In this PR #73, we stopped using Amplitudes includeReferrer setting in order to avoid a bug with anonymousIds. However, this broke the option to only set a referrer once per session, as our integration has no concept of amplitudes sessions. Referrers are being set with every page even when the option to only set referrer once per session is enabled.

This PR adds an option to revert to the old behaviour, where we let Amplitude handle setting referrer once per session. The default of the option will be a non-breaking change for existing users.

Are there breaking changes in this PR?
No

Testing

Testing completed successfully locally (referrer not being overwritten):
image
image

Any background context you want to provide?

Is there parity with the server-side/android/iOS integration components (if applicable)?

Does this require a new integration setting? If so, please explain how the new setting works
Yes, explained above

Links to helpful docs and other external resources

@danieljackins danieljackins merged commit 0c0f9eb into master Oct 26, 2021
@danieljackins danieljackins deleted the fix-amp branch October 26, 2021 16:52
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.

3 participants