Add identifyUser
This commit is contained in:
parent
74b0e52f9a
commit
4b0cb409a0
2 changed files with 22 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue