Apparently the problem is code added for Google Analytics tracking under Additional Settings. When I remove it, the success message appears, but I want to track form submissions as Goals in Google Analytics. Other messages appear, just nothing to let the user know their form was submitted.
The form is here: https://arteriors.net/contact-us/
https://www.ads-software.com/plugins/contact-form-7/
]]>on_sent_ok: “_gaq.push([‘_trackEvent’, ‘Contact Form’, ‘Submit’]);”
isn’t working properly and its coming back with an uncaught reference error of _gaq is not defined.
This is resulting in the confirmation messages not working on form when the button is pressed.
Any help in working this out would be great.
Chris
https://www.ads-software.com/plugins/contact-form-7/
]]>I have installed the following to test which one will be picked up by GA
on_sent_ok: “ga(‘send’, ‘event’, ‘Form’,’Enquire’, ‘CommunityPage’);”
on_sent_ok: “_gaq.push(([‘_trackEvent’, ‘form’, ‘Enquire’,LocationsPage’]);”
Category = form
Action = enquire
Label = communitypage/locations page
I am using the lasted GA code and wanted to turn these events into goals – I followed the following instructions for that https://www.impression.co.uk/blog/825/event-tracking-wpcf7-universal-analytics/
But nothing is getting picked up in the goal section or the event section of GA so I suspect something may be wrong with the CF7 Code?
Any help will be much appreciated as I can’t figure what is wrong…
Thanks
https://www.ads-software.com/plugins/contact-form-7/
]]>I’m entering this code (which I got from this: https://contactform7.com/tracking-form-submissions-with-google-analytics/):
on_sent_ok: "_gaq.push(['_trackEvent', 'Contact Form', 'Submit']);"
in the Additional Settings field.
See form here: https://www.eriscreative.com/contact/
https://www.ads-software.com/plugins/contact-form-7/
]]>When I’m using the “on_sent_ok” command to track an event in Google Analytics, the form delivers the email, but does not return a confirmation message to the user. This is my “on_sent_ok” line:
on_sent_ok: “ga(‘send’, ‘event’, {eventCategory: ‘Contact’, eventAction: ‘Submit’, eventLabel: ‘Form’});”
It does however return a confirmation message if I remove the on_sent_ok but then I won’t get the event.
Q: How can I register the event AND deliver the confirmation message on the same page?
https://www.ads-software.com/plugins/contact-form-7/
]]>