Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

📈 Track show branding toggle

Luke Vella1aa72df2e1f3
diff --git a/apps/web/src/trpc/routers/spaces.ts b/apps/web/src/trpc/routers/spaces.ts
index 62e8b676d..4e5a33942 100644
--- a/apps/web/src/trpc/routers/spaces.ts
+++ b/apps/web/src/trpc/routers/spaces.ts
@@ -339,11 +339,14 @@ export const spaces = router({
data: { showBranding: input.showBranding },
});
- posthog()?.groupIdentify({
- groupType: "space",
- groupKey: ctx.space.id,
+ posthog()?.capture({
+ distinctId: ctx.user.id,
+ event: "space_update_show_branding",
properties: {
- custom_branding_enabled: input.showBranding,
+ showBranding: input.showBranding,
+ },
+ groups: {
+ space: ctx.space.id,
},
});
}),