fix(posthog): set email and name on person profile at signup#4152
fix(posthog): set email and name on person profile at signup#4152waleedlatif1 merged 1 commit intostagingfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryLow Risk Overview Imports Reviewed by Cursor Bugbot for commit 4e983b6. Configure here. |
3d65a93 to
4e983b6
Compare
|
@greptile |
|
@cursor review |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 4e983b6. Configure here.
Greptile SummaryAdds a server-side Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant U as User
participant Auth as BetterAuth
participant Hook as DB Hook
participant PH as PostHog Server
participant App as App Init
U->>Auth: Sign up
Auth->>Hook: user.create.before (domain check)
Hook->>Auth: pass
Auth->>Hook: user.create.after
Hook->>PH: client.identify(userId, set email + name)
Note over PH: Server-side bypass of ad blockers
Hook->>App: handleNewUser(userId)
Auth->>Hook: account.create.after
Hook->>PH: captureServerEvent user_created
Reviews (2): Last reviewed commit: "fix(posthog): set email and name on pers..." | Re-trigger Greptile |
|
@greptile |
|
@cursor review |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 4e983b6. Configure here.
Summary
posthog.identify()inuser.create.afterhook to$setemail and name on the person profileposthog.identify()in session-provider, which gets blocked by ad blockersType of Change
Testing
Tested manually
Checklist