-
Notifications
You must be signed in to change notification settings - Fork 619
[Dashboard] Feature: Send UTM params when logging into dashboard #5400
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
[Dashboard] Feature: Send UTM params when logging into dashboard #5400
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
Your org has enabled the Graphite merge queue for merging into mainAdd the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix. You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5400 +/- ##
=======================================
Coverage 43.86% 43.86%
=======================================
Files 1076 1076
Lines 55972 55972
Branches 3910 3910
=======================================
Hits 24551 24551
Misses 30738 30738
Partials 683 683
*This pull request uses carry forward flags. Click here to find out more.
|
size-limit report 📦
|
96d9014 to
01e215c
Compare
01e215c to
f6d4f1c
Compare
Merge activity
|
## Problem solved
Short description of the bug fixed or feature added
<!-- start pr-codex -->
---
## PR-Codex overview
This PR focuses on collecting and managing `utm_` cookies for tracking purposes during user login and middleware processing. It enhances the handling of cookies to ensure `utm_` parameters are captured and forwarded appropriately in API requests and redirects.
### Detailed summary
- Added collection of `utm_` cookies in `auth-actions.ts`.
- Modified the `doLogin` function to include `utmCookies` in the request body.
- Implemented logic in `middleware.ts` to capture `utm_` parameters from URL and set them as cookies.
- Updated redirect and rewrite functions to include `cookiesToSet` for managing cookies in responses.
- Ensured cookies are set in the response for various redirect scenarios.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
f6d4f1c to
c0ab87d
Compare

Problem solved
Short description of the bug fixed or feature added
PR-Codex overview
This PR enhances the handling of UTM parameters in the login process by collecting UTM cookies and forwarding them with the login request. It also updates the middleware to capture UTM parameters from the URL and set them as cookies when the user is not authenticated.
Detailed summary
auth-actions.ts.middleware.tsto capture UTM parameters from the URL.