Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stopPropagation prevents GA4 from collecting newsletter submissions #13348

Closed
stephaniehobson opened this issue Jul 5, 2023 · 1 comment · Fixed by #13356
Closed

stopPropagation prevents GA4 from collecting newsletter submissions #13348

stephaniehobson opened this issue Jul 5, 2023 · 1 comment · Fixed by #13356
Assignees
Labels
Analytics 📈 Bug 🐛 Something's not working the way it should

Comments

@stephaniehobson
Copy link
Contributor

stephaniehobson commented Jul 5, 2023

GA4 will automatically collect form submission events BUT it is not automatically collecting our newsletter signups.

Initial investigation turns up that we are using stopPropigation in addition to preventDefault on multiple forms.

Does removing that solve the bug? Does it cause other bugs? Do we want to continue doing this and find another way to collect this information?

Note to self: also update the docs when this is resolved.

@stephaniehobson stephaniehobson added Bug 🐛 Something's not working the way it should Analytics 📈 labels Jul 5, 2023
@stephaniehobson stephaniehobson self-assigned this Jul 5, 2023
@stephaniehobson stephaniehobson changed the title stopPropagation prevents GA4 from collecting form submissions stopPropagation prevents GA4 from collecting newsletter submissions Jul 7, 2023
@stephaniehobson
Copy link
Contributor Author

I looked at the extra information we'd get by collecting subscriptions as a default event and determined we would still have to create a custom event to handle the newsletter_id so there's no immediate value in rocking this particular boat.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Analytics 📈 Bug 🐛 Something's not working the way it should
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant