I’ve added hotjar to our unbounce pages via GTM and the form fields track great, except for form submission. We use confirmation popups and can’t get hotjar to fire on a submit.
Hotjar suggests (http://docs.hotjar.com/v1.0/docs/using-javascript-to-handle-form-submissions) overriding the form’s submit function with javascript and adding functions to fire the formSubmitSuccessful and formSubmitFailed events, but I can’t see where I can do that?
Any ideas? I’ve attached their code to the click event on the submit button, but that’s just a hack, since it will still fire on a form that hasn’t passed validation.