mirror of
https://github.com/lukevella/rallly.git
synced 2025-06-08 13:41:51 +02:00
📈 Update analytics
This commit is contained in:
parent
d43bc631f1
commit
6171f46a8b
1 changed files with 3 additions and 1 deletions
|
@ -864,9 +864,11 @@ export const polls = router({
|
||||||
distinctId: ctx.user.id,
|
distinctId: ctx.user.id,
|
||||||
event: "finalize poll",
|
event: "finalize poll",
|
||||||
properties: {
|
properties: {
|
||||||
|
poll_id: poll.id,
|
||||||
|
poll_time_zone: poll.timeZone,
|
||||||
number_of_participants: poll.participants.length,
|
number_of_participants: poll.participants.length,
|
||||||
number_of_attendees: attendees.length,
|
number_of_attendees: attendees.length,
|
||||||
dayjs_since_created: dayjs().diff(poll.createdAt, "day"),
|
days_since_created: dayjs().diff(poll.createdAt, "day"),
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue