mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-29 19:35:20 +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
|
// Only identify if this is a new user or different from previous
|
||||||
if (previousUserIdRef.current !== userId) {
|
if (previousUserIdRef.current !== userId) {
|
||||||
identifyUser(userId, {
|
identifyUser(userId, {
|
||||||
email: user.email,
|
email: user.email,
|
||||||
// Add any other user properties you want to track
|
name: user.display_name,
|
||||||
is_superuser: user.is_superuser,
|
is_superuser: user.is_superuser,
|
||||||
is_verified: user.is_verified,
|
is_verified: user.is_verified,
|
||||||
});
|
});
|
||||||
previousUserIdRef.current = userId;
|
previousUserIdRef.current = userId;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue