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

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

Why your SEO is not working

5 Reasons Why Your SEO Isn't Working

02 December 2016

Posted by Che Kohler in nichemarket Advice


We take a look at the most common mistakes website owners make and why it's affecting the performance of their organic traffic.

Read more
Fitness Hashtags

Hashtags for the #Fitness Industry - Get your posts noticed Part 2

10 August 2017

Posted by Shamima Ahmed in Athletes


If you're into sport or any sort of physical activity and want to know how to get more views on your social media posts, then check out these hashtag...

Read more

Leave us a comment


{{comment.sUserName}}

{{comment.iDayLastEdit}} day ago

{{comment.iDayLastEdit}} days ago

{{comment.sComment}}

Sign up for our newsletter