GA Event on Successful Form Submission? | Community
Skip to main content
April 29, 2013
Question

GA Event on Successful Form Submission?

  • April 29, 2013
  • 1 reply
  • 582 views
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 (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
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

April 30, 2013
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.).