mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-25 11:13:41 +00:00
Add way to track posthog user properties and send numSpaces (#7716)
This commit is contained in:
committed by
GitHub
parent
c01d46d7ff
commit
91ccbe4395
@@ -53,6 +53,7 @@ import {
|
||||
} from ".";
|
||||
import { getCachedRoomIDForAlias } from "../../RoomAliasCache";
|
||||
import { EffectiveMembership, getEffectiveMembership } from "../../utils/membership";
|
||||
import { PosthogAnalytics } from "../../PosthogAnalytics";
|
||||
|
||||
interface IState {}
|
||||
|
||||
@@ -490,6 +491,8 @@ export class SpaceStoreClass extends AsyncStoreWithClient<IState> {
|
||||
this.parentMap.getOrCreate(child.roomId, new Set()).add(space.roomId);
|
||||
});
|
||||
});
|
||||
|
||||
PosthogAnalytics.instance.setProperty("numSpaces", joinedSpaces.length);
|
||||
};
|
||||
|
||||
private rebuildHomeSpace = () => {
|
||||
|
||||
Reference in New Issue
Block a user