How To Implement Goal Tracking With Contact Form 7

This is a Step by Step Guide to implementing goal tracking with Contact Form 7. 

Step 1: Configure Contact Form 7


Once you have Contact Form 7 installed and have created a form to suit your needs, you will be ready to add the tracking code. To do this you need to access the specific form you want to track by going into the Contact Form 7 dashboard and selecting the form. You should then see a tab called ‘Additional Settings’. Click the tab and you will be shown an empty text box which is where you need to enter the tracking code.

Now the next step is to think of a tracking URL to suit your form. If you are only using one contact form, this won’t really be an issue but if you have several for various different purposes you may want to separate the tracking URL.

For a standard enquiry, I would have something like this:



Now that we have our URL, it’s time to add it to the tracking code:

Universal Analytics Code

on_sent_ok: "ga('send', 'pageview', '/goals/enquiry/');"


Some people have reported issues with the sent notification not appearing when using the code above, so you may want to try this:

on_sent_ok:”_gaq.push(['_trackPageview', '/goals/enquiry/', 'sent']);”

contact form 7


Step 2: How to create a Goal in Analytics


Now that you have added your tracking code to the contact form of your choice, we now need to tell Google Analytics that any requests for that URL should be classed as goals.

  1. Sign in to Google Analytics.
  2. Select the Admin tab and navigate to the desired account, property and view.
  3. In the VIEW column, click Goals.
  4. Click NEW GOAL
  5. You then need to give the goal a name and then select destination as the type.
  6. You then need to add your URL (/goals/enquiry/) into the destination field.




If you need help implementing goal tracking on your website, you can get in touch with us.



6 Responses

    1. Hey Antonio,

      You are still able to track visits to a specific page in Analytics, but you may find that the code in this blog posts for the Contact Form 7 is outdated. Would you like me to send over the new code?

Leave a Reply

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

Free Digital Marketing Review

Book a call with Marcus Miller to learn how to generate more traffic, leads and sales.

1. Review your current marketing
2. Identify your key opportunities
3. How to improve results & cut costs!

Put over 20 years of marketing experience to work for your business today.