Forum Moderators: DixonJones

Message Too Old, No Replies

How do I track Goals thorugh the Submit Button of the form

         

abirami

11:16 am on May 26, 2009 (gmt 0)

10+ Year Member



Hi,

I have a form when users complete the fields and click the submit button. The thank you message displays in the same page. Now I need to track the number of goals in Google analytics which I feel can only be done by tracking the submit event in the button. Please let me know how do we do this in Google Analytics. I would like to reconfirm that I don't have a separate "Thank you page"

Thanks in advance

Pancho59

12:33 pm on May 26, 2009 (gmt 0)

10+ Year Member



Ab, I had that same issue. What I did was to set the destination page from the submit button to the same page that the form was on. This would reload the page and click another visit to the site showing a bounce of 0. This may or may not help but an idea...

cgrantski

12:49 pm on May 26, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I see you have been over to the Google Analytics forum to ask the same question. There's already an answer on that forum and I wonder if you looked at it and decided it wasn't what you wanted? Google on "track submit button google analytics help" to get to it.

jkovar

4:21 am on May 30, 2009 (gmt 0)

10+ Year Member



You'll want to use event tracking.
[code.google.com...]

In your situation, I get the feeling I would need to attach the _trackEvent function to the "onmousedown" event of the submit button itself to avoid conflicts with some sort of AJAX form submitter that I'm guessing is being used based on your mentioning a lack of destination page.