Track Conversion using Google Adwords and Contact Form 7

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:

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:

Your Additional Settings tab should look like below:

Contact Form 7 - Additional Settings Screenshot

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.

 

7 comments On Google AdWords Conversion Tracking in Contact Form 7

Leave a reply:

Your email address will not be published.