Contact Form 7 and Google tracking
-
Hi
I am using the latest contact form 7 plugin. All good but I cannot get it to work with google analytics or PPC tracking.
I am trying to track ppc conversions using the ppc conversion tracking code on my thankyou page, https://www.rankability.co.uk/thankyou.php.
The previous page is https://www.rankability.co.uk/150month-seo-package where the form is and I am trying to redirect to the page aswell, after the form send button has been clicked.
I have placed google analytics code, the ppc conversion code onto the thankyou page, and this code into the forms ‘addition settings’ field.
on_sent_ok: “pageTracker._trackPageview(‘/thankyou.php’);”
on_sent_ok: “location.replace(‘www.rankability.co.uk/thankyou.php’);”I hve been referring to this article, but still cannot get it to work.
https://contactform7.com/2009/11/24/tracking-form-submissions-with-google-analytics/Not sure if it is to do with the pageTracker object?? Is this unique for each website/tracking code???
Anyway, when I complete the form, the page redirects to the following URL
https://www.rankability.co.uk/150month-seo-package#wpcf7-f8-p1336-o1
I would also like to use the Google Optimiser and AB ration testing so need the form page to redirect to the thankyou page.
hope this makes sense
Many Thanks
Rob
- The topic ‘Contact Form 7 and Google tracking’ is closed to new replies.