Track Contact Form 7 Conversions via Google Analytics in 2 Minutes

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 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 running very old versions of contact form on your site, this may still work.

However, if you 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 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 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 -->
    (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
    ga('create', 'UA-XXXXX-Y', 'auto');
    ga('send', 'pageview');
    <!-- End Google Analytics -->

    If you don’t have analytics setup already, consult Google’s documentation on how to do just that.

  3. Install theContact Form 7 Google Analytics Plugin
  4. Events are setup, now all you have to do is setup the goal/s.

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

  6. Create a goal in Analytics
    • Select Admin in the Analytics side panel.
    • In the third coloum, 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 evnt 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 seperate goals then please add.
    • Click The “Save” Button, and you 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


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

About the author

Shamima Ahmed

View all posts


  • Good afternoon. Thanks a lot! Really enjoyed reading this post and found it helpful for tracking my sites lead forms.

  • Hello. I have two different forms on my website: one for contact/messages and another one for service proposal. At the moment, GA is not tracking any of the events. It’s properly installed because I receive data on it. What can I do?

    • Hi Bruno

      With so many possible issues we cannot say for sure without looking into your set up, please feel free to contact us via our contact form on the site and we can have a look at the issue

  • This really helped . literally took me less than 2 mins to set up goals . I have gone the way cf7 shown in their docs but it was not working for me . Lot of tuts there are outdated
    Thanks again

  • I have installed the plugin add it on the page too but after submitting the form it is not firing the events in google analytics under real time>> events.

    • Hi Michele if you referring to adding an AdWords conversion tag on this no. What you will need to do is set this goal as a conversation in your related adWords account and allow Google Analytics to migrate these conversions to your Adwords account for data modelling

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.