I was working a Google AdWords campaign for Mind-Wellness.net and I wanted to track when a user submitted the contact form.
I generated the static site using Hugo, and I am relying on HubSpot for the contact form.
Fortunately, HubSpot Forms API provides a onFormSubmit
callback!
Code Sample
1 | hbspt.forms.create({ |