开发者

Wordpress Contact form 7: Google Analytics Tracking

开发者 https://www.devze.com 2023-01-09 15:54 出处:网络
I\'ve got contact form 7 installed. I\'ve followed the documentation to add tracking code to the : additional settings field in wordpress (http://contactform7.com/2009/11/24/tracking-form-submissions-

I've got contact form 7 installed. I've followed the documentation to add tracking code to the : additional settings field in wordpress (http://contactform7.com/2009/11/24/tracking-form-submissions-with-google-analytics/) but then recieved pageTracker object errors开发者_JAVA百科.

Anyone else experienced this before?


Chris,

Not sure if you've resolved this but I am having the same problem...

I've made some changes and am waiting patiently for analytics to track some events but I believe I have found the problem...

The code that the Contact Form is suggesting to use is

pageTracker._trackPageview('/mysite/thank-you.html');

I have since done some research to discover that this code is the traditional code that I am not using to track analytics data... I have implemented the Async tracking code which requires this implementation:

_gaq.push(['_trackPageview', "/mysite/thank-you.html"]); 

More information can be found at Google - http://code.google.com/apis/analytics/docs/gaJS/gaJSApiBasicConfiguration.html#_gat.GA_Tracker_._trackPageview

You should check what google analytics code you are using within your page - if you see _gaq then it is async


As stated in the previous comment above i ended up solving this issue by adding a psuedo page:

the page url becomes:

/?completed=1 ;

0

精彩评论

暂无评论...
验证码 换一张
取 消