Create Google Analytics Goals and link them to WordPress Contact Form and Google Adwords

This guide contains a fast set of step by step instructions for those of you that want to get Google Analytics and Google Adwords goals and conversions working according to best practises. This guide will show you how to create a contact form goal within Google Analytics and how this goal is linked to your WordPress contact form


  1. You must have a Google Analytics Account
  2. You must have a WordPress website. This guide is for WordPress.
  3. You must have the Contact Form 7 plugin installed within WordPress.
  4. A Google Adwords Account is optional – If you do have one, we will who you how to link your Google Adwords conversion Goal into your Google Adwords account

On Google Analytics

  1. Login to Google Analytics
  2. Go to Admin
  3. Go to Goals
  4. Click “New Goal”
  5. Within Goal Setup, click Inquiry, Contact us and Click Continue.
  6. Select “Type” as Event
  7. Within “Event Conditions”, set category = “Contact Form” and Action = “submit”
  8. Save Goal

On Google Adwords

  1. Within Adwords, click Tools, then go to “Conversions”. You should see your “Contact us” conversion goal – There is nothing further for you to do on Google Adwords, other than wait for the goal to be verified by the Google team.

On WordPress

  1. Go to Contact Form 7, then on the “Additional settings” tab, paste the below code snippet and save:
    on_sent_ok: “ga(‘send’, ‘event’, ‘Contact Form’, ‘submit’);”

Testing your goal

For this test, we are simply checking that when a visitor completes your website contact form, the goal completion counter increases.

  1. Go to your website and complete your contact form details, and click the submit button.
  2. Go back to Google Analytics (You may need to wait a few hours before the event is displayed)
  3. Go to the Conversions section under Google Analytics. You should see your “Goal Completions” count at 1.
  4. In the example below, you can see the “Goal Completions” counter equal to one. Each time a visitor submits your contact form, this counter will increase.

About the author Jason

"I care about creating great websites that not only look good, but also serve a purpose"

{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}