LOG IN OR SIGN UP
Log in to your account
Sign up

Track Contact Form 7 Conversions via Google Analytics in 2 Minutes

13 February 2018 | 0 comments | Posted by Shamima Ahmed in nichemarket Advice

Track conversions and create goals on WordPress with Contact Form 7

Contact Form 7 has been the favoured free plugin in the Wordpress Community for a long time. It's easy to use, doesn't cost a cent and also comes standard with most themes these days. Despite the fact that this tracking conversion through Google Analytics has never been as straightforward, this form does not allow you to link to "Thank You" pages, so a clean conversion is not trackable the through this traditional, favoured method.

Fixing this in the past

Conversion tracking in Analytics was easily fixed by adding a quick event to the Additional Settings tab of the desired form. However, this method was made obsolete at the end of 2017.

If you are running very old versions of contact form on your site, this may still work. However, if you are running the newer versions of the form, you'll notice adding your event code to the Additional Settings Tab, yields an error and no goals or events are fired in analytics. Luckily I figured out a quick and easy way to fix this issue.

The official fix

If you are looking for the official fix from Contact Form 7 itself, please visit their site and refer to their documentation. It seems simple, and I followed it to the T, along with other methods that suggested editing the functions.php file and it didn't work. But if you are looking for a solution that actually works, try the fix below.

The fix that actually works

With this method, tracking conversions with Google Analytics and Contact Form 7 is really simple. And it honestly doesn't take more than two minutes of your time (if Google Analytics is already implemented on your site).

  1. Make sure Google Analytics is implemented
  2. Have a quick look at the HTML source of a webpage on your site to make sure Google Analytics is implemented; You should have a code similar to this in the < head > section of the site.
<!-- Google Analytics --> <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-XXXXX-Y', 'auto'); ga('send', 'pageview'); </script> <!-- End Google Analytics -->
    If you don't have analytics setup already, consult Google's documentation on how to do just that.

  1. Install the Contact Form 7 Google Analytics Plugin
  2. Events are set up, now all you have to do is set up the goal/s.

  3. Fire off Event and Make a note of the elements
    • In Analytics, browse to the events report under Real-Time
    • Complete the contact form on site and click submit.
    • Make a note of the Event: Category, Action and Label

  4. Create a goal in Analytics
    • Select Admin in the Analytics side panel.
    • In the third column, under View, select Goals.
    • Select the Red, + NEW GOAL button
    • Under Goal Setup, select Custom (last option) and click continue.
    • Name your Goal Under Goal Description, e.g. Form Submission
    • Select "Event" under "Type" and click continue.
    • Now you need the notes you made earlier, in step 3 regarding the event conditions, Fill in the Event Category, Action and Label. Note: Label Is not necessary, but if you have more than one form and would like to distinguish between each in separate goals, then please add.
    • Click The "Save" Button, and you are done!

    You can create a separate goal for each different form if you like and can easily track their performance separately. All you have to do is add the different labels for each form

Contact us

If you would like to know more about Tracking Conversion in Analytics, comment below or contact us here

Are you looking to promote your business?

South African Business owners can create your free business listing on nichemarket. The more information you provide about your business, the easier it will be for your customers to find you online. Registering with nichemarket is easy; all you will need to do is head over to our sign up form and follow the instructions.

If you require a more detailed guide on how to create your profile or your listing, then we highly recommend you check out the following articles. 

Recommended reading

If you enjoyed this post and have a little extra time to improve your skills, here are some related posts on all things Contact Form 7, reCAPTCHA and Wordpress.

Tags: conversion optimisation, google analytics, How to, tracking, Wordpress, Wordpress plugins

Previous: {{ previousBlog.sTitle }}

Posted {{ previousBlog.dtDatePosting }}

Next: {{ nextBlog.sTitle }}

Posted {{ nextBlog.dtDatePosting }}

You might also like

Ways to generate high quality traffic

5 Effective Ways to Drive Traffic to Your Website

19 March 2024

Posted by Brigitte Evans in Industry Experts


An introduction to sourcing high quality traffic for your niche and why you should focus on channels that can give you the best chance of reaching id...

Read more
Difference between Forex and Crypto trading

The Intricacies of Trading Crypto vs. Forex

03 April 2024

Posted by Josh Welman in Money Talks


A deep dive into the differences between the forex and cryptocurrency markets, along with the nuances you have to consider if you trade these two ass...

Read more

Leave us a comment


{{comment.sUserName}}

{{comment.iDayLastEdit}} day ago

{{comment.iDayLastEdit}} days ago

{{comment.sComment}}

Sign up for our newsletter