Add way to track posthog user properties and send numSpaces (#7716)
This commit is contained in:
parent
c01d46d7ff
commit
91ccbe4395
8 changed files with 43 additions and 22 deletions
|
@ -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 = () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue