Skip to content

Commit

Permalink
📈 Merge set and identify calls
Browse files Browse the repository at this point in the history
  • Loading branch information
lukevella committed Jul 21, 2024
1 parent 4ccaad4 commit 49a06f1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions apps/web/src/contexts/posthog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,9 @@ export function PostHogProvider(props: PostHogProviderProps) {

useMount(() => {
if (user.email) {
posthog.identify(user.id);
posthog.people.set({
$email: user.email,
$name: user.name,
posthog.identify(user.id, {
email: user.email,
name: user.name,
});
}
});
Expand Down

0 comments on commit 49a06f1

Please sign in to comment.