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
- You must have a Google Analytics Account
- You must have a WordPress website. This guide is for WordPress.
- You must have the Contact Form 7 plugin installed within WordPress.
- 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
- Login to Google Analytics
- Go to Admin
- Go to Goals
- Click “New Goal”
- Within Goal Setup, click Inquiry, Contact us and Click Continue.
- Select “Type” as Event
- Within “Event Conditions”, set category = “Contact Form” and Action = “submit”
- Save Goal
On Google Adwords
- 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.
- 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.
- Go to your website and complete your contact form details, and click the submit button.
- Go back to Google Analytics (You may need to wait a few hours before the event is displayed)
- Go to the Conversions section under Google Analytics. You should see your “Goal Completions” count at 1.
- 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.