Re: GA Event on Successful Form Submission?

Anonymous
Not applicable

GA Event on Successful Form Submission?

I'm looking to add a Google Analytics event on the successful submission of a landing page form.

Something like:
_gaq.push(['_trackEvent', 'Resource Download', 'Marketing Advisory']);

I'm hoping to add this via JS to the form submit.

I see that something similar has been done with hooking into the submit functionality (http://test.hollebone.ca/marketo-form-tips/#AdWords), but I was hoping someone might provide a more robust solution that could eliminate potential false-positives.

Best,
Edward Unthank
Tags (1)
1 REPLY 1
Anonymous
Not applicable

Re: GA Event on Successful Form Submission?

We add our Google Analytics Goal tracking code on the form's Follow-up Page (a.k.a. confirmation landing page), which is ususally only displayed when you suiccesfully submit the form (assuming you don't already know the URL and navigate their directly, which is very unlikely.).