Skip to content

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

📈 Track cancel event

Luke Vellaac75e690a87c
diff --git a/apps/web/src/features/scheduled-event/actions.ts b/apps/web/src/features/scheduled-event/actions.ts
index 2195a28e1..4d4b453c2 100644
--- a/apps/web/src/features/scheduled-event/actions.ts
+++ b/apps/web/src/features/scheduled-event/actions.ts
@@ -45,6 +45,14 @@ export const cancelEventAction = authActionClient
revalidatePath("/", "layout");
+ ctx.posthog?.capture({
+ event: "cancel_event",
+ distinctId: ctx.user.id,
+ properties: {
+ event_id: parsedInput.eventId,
+ },
+ });
+
// notify attendees
const attendees = await prisma.scheduledEventInvite.findMany({
where: {