mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-01 03:46:25 +02:00
feat: include user display name in PostHog identification
This commit is contained in:
parent
3dbae2d278
commit
cdd9b4b4b5
1 changed files with 6 additions and 6 deletions
|
|
@ -26,12 +26,12 @@ export function PostHogIdentify() {
|
|||
|
||||
// Only identify if this is a new user or different from previous
|
||||
if (previousUserIdRef.current !== userId) {
|
||||
identifyUser(userId, {
|
||||
email: user.email,
|
||||
// Add any other user properties you want to track
|
||||
is_superuser: user.is_superuser,
|
||||
is_verified: user.is_verified,
|
||||
});
|
||||
identifyUser(userId, {
|
||||
email: user.email,
|
||||
name: user.display_name,
|
||||
is_superuser: user.is_superuser,
|
||||
is_verified: user.is_verified,
|
||||
});
|
||||
previousUserIdRef.current = userId;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue