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

🐛 Fixed member source attribution for sign-up (Portal) links #20566

Merged
merged 1 commit into from
Jul 9, 2024

Conversation

9larsons
Copy link
Contributor

@9larsons 9larsons commented Jul 9, 2024

ref https://linear.app/tryghost/issue/ONC-154

  • the query params did not carry through on portal sign up links because of the hash creating an ignored fragment (/#/portal/signup?ref=something)

Now when we check link attribution, we'll attempt to run the same logic for the referrer source after stripping out #/portal from the URL. Otherwise we should continue to treat these fragments as fragments to be ignored by the client.

NOTE: We do not have e2e tests that cover member signup on the front end and the data entered in the back end. The tests we have mock only the server side of things. The test added here only covers the data that is generated from the front end request (at this time), not the front end request itself, meaning it's fragile.

ref https://linear.app/tryghost/issue/ONC-154
- the query params did not carry through on portal sign up links because of the hash creating an ignored fragment (/#/portal/signup?ref=something)

Now when we check link attribution, we'll attempt to run the same logic for the referrer source after stripping out `#/portal` from the URL. Otherwise we should continue to treat these fragments as fragments to be ignored by the client.

NOTE: We do not have e2e tests that cover member signup on the front end and the data entered in the back end. The tests we have mock only the server side of things. The test added here only covers the data that is generated from the front end request (at this time), *not* the front end request itself, meaning it's fragile.
@9larsons 9larsons changed the title Added handling for signup (Portal) links to member attribution 🐛 Fixed member source attribution for sign-up (Portal) links Jul 9, 2024
@9larsons 9larsons enabled auto-merge (squash) July 9, 2024 16:11
@9larsons 9larsons merged commit 0023031 into main Jul 9, 2024
21 checks passed
@9larsons 9larsons deleted the support-attribution-signup-links branch July 9, 2024 16:14
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.

1 participant