mirror of
https://github.com/lukevella/rallly.git
synced 2025-06-14 08:31:53 +02:00
📈 Identify users in posthog (#1252)
This commit is contained in:
parent
175e74fe0c
commit
c57428df83
1 changed files with 7 additions and 9 deletions
|
@ -54,15 +54,13 @@ export function PostHogProvider(props: PostHogProviderProps) {
|
|||
usePostHogPageView();
|
||||
|
||||
useMount(() => {
|
||||
if (user.email) {
|
||||
posthog.identify(user.id, {
|
||||
email: user.email,
|
||||
name: user.name,
|
||||
tier: user.tier,
|
||||
timeZone: user.timeZone,
|
||||
locale: i18n.language,
|
||||
});
|
||||
}
|
||||
posthog.identify(user.id, {
|
||||
email: user.email,
|
||||
name: user.name,
|
||||
tier: user.tier,
|
||||
timeZone: user.timeZone,
|
||||
locale: i18n.language,
|
||||
});
|
||||
});
|
||||
|
||||
return <Provider client={posthog}>{props.children}</Provider>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue