📈 Update analytics

This commit is contained in:
Luke Vella 2024-06-10 20:39:54 +01:00
parent d43bc631f1
commit 6171f46a8b

View file

@ -864,9 +864,11 @@ export const polls = router({
distinctId: ctx.user.id,
event: "finalize poll",
properties: {
poll_id: poll.id,
poll_time_zone: poll.timeZone,
number_of_participants: poll.participants.length,
number_of_attendees: attendees.length,
dayjs_since_created: dayjs().diff(poll.createdAt, "day"),
days_since_created: dayjs().diff(poll.createdAt, "day"),
},
});