Attempt to fix false user multiplication in analytics (#6980)

This commit is contained in:
Artem Kheystver 2024-10-18 19:51:38 +02:00 committed by GitHub
parent c0021bbe7c
commit 1192e23d18
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -11,8 +11,10 @@ export class PosthogAnalyticProvider implements AnalyticProvider {
}
setUser(email: string): void {
if (!posthog._isIdentified()) {
posthog.identify(email, { email: email })
}
}
setTag(key: string, value: string): void {
posthog.setPersonProperties({ [key]: value })
}