feat: add tracking for users viewed in search space

- Introduced a new event tracking function for when users view the team page in a search space.
- Updated the team management page to utilize this tracking, capturing user and owner counts.
This commit is contained in:
DESKTOP-RTLN3BA\$punk 2026-01-08 13:38:28 -08:00
parent dfaa0cef21
commit 609fc879be
2 changed files with 22 additions and 2 deletions

View file

@ -321,6 +321,18 @@ export function trackSearchSpaceUserAdded(
});
}
export function trackSearchSpaceUsersViewed(
searchSpaceId: number,
userCount: number,
ownerCount: number
) {
posthog.capture("search_space_users_viewed", {
search_space_id: searchSpaceId,
user_count: userCount,
owner_count: ownerCount,
});
}
// ============================================
// CONNECTOR CONNECTION EVENTS
// ============================================