Analytics
3.3K members online now
3.3K members online now
Learn how to set up goals and Ecommerce tracking, verify accuracy of attribution traffic sources, and discuss funnel visualization, Multi-Channel Funnels, the Goal Flow Report, and Enhanced Ecommerce
 
Guide Me
star_border
Reply

Can't Track Form Submission as an Event

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hello,

 

I'm having trouble tracking form submissions for the "QUICK & EASY BOND QUOTE" form in the URL below as an event:

 

http://199.119.123.135/surety-bonds/commercial-bonds/auto_dealer_bond.htm

 

I can't find any concrete guides on how to do this from Google. I'm currently using a method that I found on Stack Overflow, but it doesn't seem to be working...see here: http://stackoverflow.com/questions/16092220/google-analytics-form-submit-event-tracking

 

I'm monitoring the events in real time and nothing is appearing when I submit the form. Please help!

1 Expert replyverified_user

Re: Can't Track Form Submission as an Event

Visitor ✭ ✭ ✭
# 2
Visitor ✭ ✭ ✭

Re: Can't Track Form Submission as an Event

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭
Hey Wes,

Unfortunately, that's for the old analytics tracking code. Our website uses the new analytics tracking code, which is why I'm having trouble finding a solution for this. Any ideas?

Re: Can't Track Form Submission as an Event

Rising Star
# 4
Rising Star
Hey Eric,

You're using Contact Form 7 here?
Joshua, Rising Star
Was my response helpful? If yes, please mark it as the ‘Best Answer.’

Re: Can't Track Form Submission as an Event

A T
Participant ✭ ✭ ✭
# 5
A T
Participant ✭ ✭ ✭

this might help: http://www.lunametrics.com/blog/2013/07/02/jquery-event-tracking-generator-google-analytics/

 

replace the old GA functions with new functions:

 

https://developers.google.com/analytics/devguides/collection/analyticsjs/events

 

sample: 

ga('send', 'event', 'Videos', 'play', 'Fall Campaign');

 

Re: Can't Track Form Submission as an Event

[ Edited ]
Visitor ✭ ✭ ✭
# 6
Visitor ✭ ✭ ✭

Hey Joshua,

No, I'm using my own custom HTML form.

Hey GA Guru,

Thanks for the response. I see the event tracking code generator, but it seems it's for the old analytics tracking code (we use the new one). A comment on that page by "Clay Nichols" is saying to replace some code with "ga('send', 'pageview', location.pathname);" and it will work. Do you know what he's referring to that needs to be changed?

Re: Can't Track Form Submission as an Event

A T
Participant ✭ ✭ ✭
# 7
A T
Participant ✭ ✭ ✭
_gaq.push(["_trackEvent",

needs to be replaced with new calls.

Re: Can't Track Form Submission as an Event

Visitor ✭ ✭ ✭
# 8
Visitor ✭ ✭ ✭
Use the Form Submission GTM Trigger. It fires when ever someone clicks Submit on a form. Easy as pie. I just set this up yesterday. Enable all form variables I'm using the form destination url as a filter, or it will fire on all form submits across your website. Sent from my iPhone

Re: Can't Track Form Submission as an Event

Visitor ✭ ✭ ✭
# 9
Visitor ✭ ✭ ✭
Hey Wes,

Are you referring to Google Tag Manager for form submissions? See here: https://support.google.com/tagmanager/answer/6106961?hl=en

Re: Can't Track Form Submission as an Event

Visitor ✭ ✭ ✭
# 10
Visitor ✭ ✭ ✭
Yes, it is working like a charm for me. 1st try. Google Tag Manager Form Submission Trigger Make sure to enable all of the forms variables so you can use what you need to fire the event off.