I’ve resolved the issue by using, what’s in that article as a note.
Note: If you use newer version of the tracking code, you need to run this code instead:
_gaq.push([‘_trackPageview’, ‘/mysite/thank-you.html’]);
This is still an issue for me even though I am using the newer tracking code. Do I still put on_sent_ok: or just the code.
This is still an issue for me even though I am using the newer tracking code. Do I still put on_sent_ok: or just the code.
Yes you have to put the “on_sent_ok” function as well.
I can confirm that it works.
Here’s a tutorial that shows the whole process in details: http://www.searchingsam.com/wordpress-tracking-contact-form-7-conversions-in-google-analytics/#.UYJRcbWLDhC
I’m using this:
on_sent_ok: "_gaq.push(['_trackPageview', '/contact-us/thank-you']);"
…but after submit, the form does not reset and the success message does not appear. Is it working for you?
I tried adding the <script> tag and that seems to have fixed it. But is this going to break something else?
<script>on_sent_ok: "_gaq.push(['_trackPageview', '/contact-us/thank-you']);"</script>
I’m about to give up. I’m not getting any analytics coming through. Any advice?
Any advice?
Yes, start your own thread instead of posting in an old one already marked resolved – see:
http://codex.ww.wp.xz.cn/Forum_Welcome#Where_To_Post
Thank you. I’ve visited a lot of posts and didn’t notice this one had been marked resolved.