on_sent_ok hook working but _gaq.push tracking isn't
-
Hi there
Firstly, thanks for a great plugin. I have been using it for ages and it keeps getting better and better.
Sadly, I have come upon an issue in the latest version (or maybe the latest version of WordPress). The site in questions is WPv3.5.1 and CF7v3.3.3
My client complained that the GA tracking we had set up had stopped working. I went in and checked the settings but it all looked fine:
on_sent_ok: "_gaq.push(['_trackPageview', '/contact/request-a-prospectus/sent.html']);"
I tried setting the URL to a fully qualified URL but that still doesn’t work.
So then I tried the following to check the hook is working:
on_sent_ok: "alert('Sent!');"
Sure enough, upon submission of the form, a nice little dialogue box appeared with the word “Sent!” in.
So then I tried the following:
on_sent_ok: "_gaq.push(['_trackPageview', 'https://www.websitename.com/contact/request-a-prospectus/sent.html']);alert('Sent!');"
Again, the dialogue popped up so I assume the _gaq.push has also been executed. However, there are still no tracking hits coming through.
I then tried this:
on_sent_ok: "_gaq.push(['_setAccount', 'UA-XXXXXXX-1']);_gaq.push(['_trackPageview', 'https://www.websitename.com/contact/request-a-prospectus/sent.html']);alert('Sent!');"
Still nothing.
Do you have any idea as to what could be happening (or not) here? It’s driving me nuts!
- The topic ‘on_sent_ok hook working but _gaq.push tracking isn't’ is closed to new replies.