What does page tracker object mean? I am not sure what I have used so I can’t update the code per the instructions.
Thanks.
sure.
Here is the url for the contact form.
http://curbsidesharpening.com/contact-us/
Look into the HTML source. You can find this snippet there.
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXXXXX-X']);
_gaq.push(['_trackPageview']);
In your site, _gaq
is used as a name of a page tracker object, so you can use the same code which used in the example.
on_sent_ok: "_gaq.push(['_trackEvent', 'Contact Form', 'Submit']);"
Thank you very much. I have entered this code into my Contact form 7.
How do I setup Google Analytics with this information? I have currently setup a Goal in conversions to be when a person goes to my contact us page but of course I don’t want to count when someone goes to the page but rather when they fill out the form.
Do I need to do anything special to my conversion goal per what I have setup on the contact form?
Thanks again.
No, you don’t need any other setup on the contact form. That code tracks a submission as an event, so you can see the count in GA’s Behavior > Events.
If you want to do something more, try consulting GA’s doc.
I just set up this tracking and it appears to work. However, I am no longer getting the green box “success” message when the form is submitted and the form fields are not cleared. I’m afraid that because of this people will submit the form multiple times. Any ideas?