megangarwood
Member
Posted 1 year ago #
Hello,
I've noticed a problem with the Google Analytics integration on my site. When I have the Analytics tracking code added into the additional settings area of the contact form, the success message doesn't display (but the email is sent). I've tried both the old and new styles of tracking code as seen below:
on_sent_ok:"_gaq.push(['_trackPageview', '/mysite/thank-you.html']);"
or
on_sent_ok: "pageTracker._trackPageview('/mysite/thank-you.html');"
If I remove the tracking code, the success message is displayed as normal. You can see the problem here: Test page. This page is set up with the tracking code; the contact page is an example of no tracking code.
I found a few other related questions, but none of the answers I saw solved this issue.
ricksportel
Member
Posted 7 months ago #
I'm also having this issue with my configuration. Does anyone know how to solve it?
gwebsolutions
Member
Posted 7 months ago #
markblg
Member
Posted 7 months ago #
Hi,
I tried what it says in your link http://www.bobzien.com/2010/10/22/google-analytics-goals-with-contact-form-7-the-right-way/, but after that the contact form display success message no more. Do you have any other suggestion?
Thanks
Mark
gwebsolutions
Member
Posted 7 months ago #
If you read the post you will note item 10 - "... clearing out extraneous Javascript that was undoubtedly causing conflicts preventing successful display of the AJAX feedback message and the action hook necessary to register a completed goal."
Perhaps check for extraneous javascripts on your page - probably another plugin conflicting. Switch them on and off to test perhaps. You may be able to find the cause quickly that way and address it.
Gary
gwebsolutions
Member
Posted 7 months ago #
If you read the post you will note item 10 - "... clearing out extraneous Javascript that was undoubtedly causing conflicts preventing successful display of the AJAX feedback message and the action hook necessary to register a completed goal."
Perhaps check for extraneous javascripts on your page - probably another plugin conflicting. Switch them on and off to test perhaps. You may be able to find the cause quickly that way and address it.
Gary