Skip to content

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

📈 Capture participant email in posthog (#569)

Luke Vella62a5c6580305
diff --git a/apps/web/src/components/poll/mutations.ts b/apps/web/src/components/poll/mutations.ts
index e16289df8..866efe4c2 100644
--- a/apps/web/src/components/poll/mutations.ts
+++ b/apps/web/src/components/poll/mutations.ts
@@ -15,10 +15,11 @@ export const normalizeVotes = (
export const useAddParticipantMutation = () => {
return trpc.polls.participants.add.useMutation({
- onSuccess: (_, { pollId, name }) => {
+ onSuccess: (_, { pollId, name, email }) => {
posthog.capture("add participant", {
pollId,
name,
+ email,
});
},
});