Skip to content

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

🔥 Slim poll response analytics (#2457)

Luke Vella2b7d45d2d0c8
diff --git a/apps/web/src/trpc/routers/polls.ts b/apps/web/src/trpc/routers/polls.ts
index 02b725189..99d07706f 100644
--- a/apps/web/src/trpc/routers/polls.ts
+++ b/apps/web/src/trpc/routers/polls.ts
@@ -245,7 +245,6 @@ export const polls = router({
status: poll.status,
is_guest: ctx.user.isGuest,
created_at: poll.createdAt,
- participant_count: 0,
comment_count: 0,
option_count: poll.options.length,
has_location: !!location,
diff --git a/apps/web/src/trpc/routers/polls/participants.ts b/apps/web/src/trpc/routers/polls/participants.ts
index f6b9920d0..418a4e6f0 100644
--- a/apps/web/src/trpc/routers/polls/participants.ts
+++ b/apps/web/src/trpc/routers/polls/participants.ts
@@ -345,21 +345,11 @@ export const participants = router({
}),
);
- posthog()?.groupIdentify({
- groupType: "poll",
- groupKey: pollId,
- properties: {
- participant_count: totalResponses,
- },
- });
-
- // Track participant addition analytics
posthog()?.capture({
distinctId: ctx.user.id,
event: "poll_response_submit",
properties: {
participant_id: participant.id,
- participant_name: participant.name,
has_email: !!email,
total_responses: totalResponses,
},