I would like to handle the onClick event on form submission to push a GA event - is this possible?
We've moved the forum!
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
This is a javascript thing, and as such is completely at your discression with having absolute freedom over the rendered output.
So yep, it's possible. I imagine it'll involve something such as https://api.jquery.com/submit/
Sorry I should have been clearer, this is for the submit action on the UserForms module, not vanilla HTML.
The same answer stands ;)