📈 Capture more information about notifications

This commit is contained in:
Luke Vella 2023-03-23 22:21:27 +00:00
parent 1fba36f9c8
commit 243c9984cb
2 changed files with 25 additions and 5 deletions

View file

@ -29,6 +29,7 @@ const NotificationsToggle: React.FunctionComponent = () => {
onSuccess: () => {
posthog?.capture("turned notifications on", {
pollId: poll.id,
source: "notifications-toggle",
});
},
});
@ -37,6 +38,7 @@ const NotificationsToggle: React.FunctionComponent = () => {
onSuccess: () => {
posthog?.capture("turned notifications off", {
pollId: poll.id,
source: "notifications-toggle",
});
},
});