chore: add user properties to posthog integration (#1814)

This commit is contained in:
Matti Nannt
2023-12-21 14:58:55 +01:00
committed by GitHub
parent 12d995465a
commit 15c91b798d

View File

@@ -13,7 +13,7 @@ export default function PosthogIdentify({ session }: { session: Session }) {
useEffect(() => {
if (posthogEnabled && session.user && posthog) {
posthog.identify(session.user.id);
posthog.identify(session.user.id, { name: session.user.name, email: session.user.email });
}
}, [session, posthog]);