mirror of
https://github.com/hcengineering/platform.git
synced 2025-06-01 21:31:04 +00:00
Attempt to fix false user multiplication in analytics (#6980)
This commit is contained in:
parent
c0021bbe7c
commit
1192e23d18
@ -11,8 +11,10 @@ export class PosthogAnalyticProvider implements AnalyticProvider {
|
|||||||
}
|
}
|
||||||
|
|
||||||
setUser(email: string): void {
|
setUser(email: string): void {
|
||||||
|
if (!posthog._isIdentified()) {
|
||||||
posthog.identify(email, { email: email })
|
posthog.identify(email, { email: email })
|
||||||
}
|
}
|
||||||
|
}
|
||||||
setTag(key: string, value: string): void {
|
setTag(key: string, value: string): void {
|
||||||
posthog.setPersonProperties({ [key]: value })
|
posthog.setPersonProperties({ [key]: value })
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user