Google AdWords Conversion Tracking in Contact Form 7
You’re using WordPress and Contact Form 7 and everything seems great. But one day, you need to track in Google AdWords how many people use the contact form to see the conversion rates. Unlike some contact form plugins, Contact Form 7 does not generate a thank you page after submitting the form. This will make it hard to embed Google AdWords Conversion Tracking Code. The good news is Contact Form 7 allows you to attach a function call after form submission. It means that we can apply the tracking code on that function call. On your header.php of your current WordPress template, add the following code: [crayon-6767ad23a7c14517508266/] Don’t forget to replace the goalId and label to your AdWords ID and LABEL. On Contact Form 7 – Additional Settings tab, add the following: [crayon-6767ad23a7c22017346219/] Your Additional Settings tab should look like below: Like how it was mentioned, this function will be called when the form has been submitted. The function will create an image tag that links to Google AdWords Conversion Tracker.
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed