You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
Add identifyUser
This commit is contained in:
@@ -64,6 +64,11 @@ export class PosthogAnalytics {
|
||||
}
|
||||
}
|
||||
|
||||
public async identifyUser(userId: string) {
|
||||
if (this.onlyTrackAnonymousEvents) return;
|
||||
this.posthog.identify(await hashHex(userId));
|
||||
}
|
||||
|
||||
public isInitialised(): boolean {
|
||||
return this.initialised;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user