Repository navigation
Send name and email with the user_created event - #491
Merged
Merged
Conversation
The browser identifies a new user only after sign-up, so the user_created event reached the person profile before it had a name or email. PostHog destinations triggered by the event showed the distinct ID instead of the name, and test-account filters on email did not match.
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
widefleet-docs | d821d38 | Nov 29 2026, 12:33 PM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The browser identifies a new user with name and email only after sign-up. The server's
user_createdevent therefore reached PostHog before the person profile had either, so:user_created(for example a chat message using{person.name}) showed theuser:<id>distinct ID instead of the name.person.properties.emaildid not matchuser_created, so internal sign-ups were not filtered.ObservationEventgets an optionalpersonwith name and email, which product analytics sends as$setwith the event. PostHog applies an event's own$setto the person properties that destinations and filters read for that event. Both user creation paths (Better Auth sign-up and installation owner setup) fill it; other events are unchanged.With product analytics configured, the server now sends the new user's name and email at account creation. This includes users who never open the control plane in a browser, such as an installation owner created by the initialization command from a bootstrap file; before, only browser identification sent these fields.
Validation:
pnpm checkand the analytics, observation and email-setup tests pass locally.