📈 Include pollId when capturing events (#555)

This commit is contained in:
Luke Vella 2023-03-13 17:41:49 +00:00 committed by GitHub
parent e77ed269f5
commit d14a88e9eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 73 additions and 63 deletions

View file

@ -93,6 +93,7 @@ const Page: React.FunctionComponent<CreatePollPageProps> = ({
onSuccess: (res) => {
setIsRedirecting(true);
posthog.capture("created poll", {
pollId: res.id,
numberOfOptions: formData.options?.options?.length,
optionsView: formData?.options?.view,
});