Configure Contact Form 7 for Google Analytics Conversion Tracking

I wrote in a previous blog post about all the amazing insights you gain from running Google Analytics on your website, but when it comes down to it, Google Analytics helps you to assess whether visitors are doing what you want them to or not.  For example, the goal of an e-commerce site is to compel visitors to make a purchase from an online store.  The goal of a B2B website may be to encourage potential customers to download a “white paper” about the supplier’s newest product line.

In order for Google Analytics to provide real business intelligence on your website’s performance, you first have to configure Analytics to recognize when a visit to your website results in the completion one or more of your sales or marketing goals (such as a store purchase, white paper download, etc).  In this post I outline exactly how to configure Contact Form 7 and Google Analytics to track and identify form submissions as goals within Google Analytics.  If after the slideshow you’d like more information about what Google Analytics can tell you about your website’s performance, visit our Website Optimization page.

Note: I presume anyone following these instructions already has both Contact Form 7 and Google Analytics installed and functioning properly.  If you need help getting Google Analytics setup feel free to contact us.

Contact Form 7 Additional Settings
Contact Form 7 Successful Submission
Virtual Pageviews as a Result of Form Submission
Google Analytics Goal Configuration
Google Analytics Goal Configuration
Goal Completion Reporting - Google Analytics

1. Determine the naming convention for your form submissions.

The contact form submissions will be tracked as virtual page views, so they will appear anywhere in Google Analytics that "real" page views do.  I suggest you provide each of your contact forms with a unique, easily identifiable label so you can filter and spot your form submissions in various in Google Analytics reports.  In this example, I decided to use:

/GA_Virtual/contact_form_name

2. Add the Google Analytics tracking code to the "Additional Settings" field of each of your contact forms.

Use the following code snippet, substituting the text in red for the event tracking syntax you chose above.  When you're done it should look like the image above.

on_sent_ok: "_gaq.push(['_trackPageview', '/GA_Virtual/generic_contact/']);"

3. Test each contact form you configured in Part 1.

Complete a test submission to each form.  Make sure you see the green confirmation box after each submission!

4. Find your form submissions in Google Analytics.

Go to "Google Analytics -> Content -> Site Content -> All Pages" and find the names of the form submissions you decided on in Step 1. Keep in mind that by default Google Analytics excludes data from the current day so you will probably have to adjust the date range of your report if you're completing this project in one day. If your date range is correct and you still don't see the virtual pageviews wait a few hours and look again.

5. Navigate to the "Goals" section of the Analytics dashboard.

Click "Admin" in the top-right corner of the Google Analytics dashboard, then click on the "Goals" tab just under your Profile name and Property ID.

6. Configure a new goal in Google Analytics for each contact form you're tracking.

Give your goal a meaningful name then select "URL Destination." In the field that appears enter one of the virtual pages you just verified in the previous step. Make sure you select "Head Match" and click "Save." Repeat this for each contact form you want to track.

7. Test and validate Goal Completion reporting.

Go back to your contact forms and complete one additional test submission for each form you're tracking. Wait a day or two then go into "Google Analytics -> Conversions -> Goals -> Overview" and you should see a report similar to the above that tallies your contact form submissions. If you see "spikes" in the report, congratulations - you're done!

Contact Form 7 Additional Settings thumbnail
Contact Form 7 Successful Submission thumbnail
Virtual Pageviews as a Result of Form Submission thumbnail
Google Analytics Goal Configuration thumbnail
Google Analytics Goal Configuration thumbnail
Goal Completion Reporting - Google Analytics thumbnail
Read More

How to Add a User to Google Analytics

If you’ve implemented Google Analytics to track your website’s traffic statistics you’ll find that over the course of time you’ll occasionally need to share your data with coworkers, marketing or technology consultants, or others.  While Google Analytics does have export and reporting functionalities, sometimes it’s just easier to give people direct access to your Analytics account, and this is exactly what we’ll be teaching you how to do in this video – to enable others to access your Google Analytics data.

 

  1. First, go to http://www.google.com/analytics and login.
  2. Click on the profile name of the site whose data you would like to share.
  3. Click the gear near the top-right corner of the page.
  4. Click the “Users” tab.
  5. On the Users tab, you can see the name, e-mail address, and role of all the users who currently have access to this profile.
  6. To add a new user click the “Add New User” button.
  7. Enter the Google e-mail address of the individual you’d like to add to this Analytics profile, then click “Create User”.
  8. Confirm that the user was successfully added. The default role for a new user is “Collaborator”, which means the user can view all data within this profile but cannot grant new users access as we just did. If you would like make your new user an Administrator you can easily do that.
  9. First click the “settings” link for that user, to the right of his role.
  10. On the Profile User Settings screen, click the button next to “Administrator” and then click “Save”.
Read More

How to Sign up for Google Analytics

This video is the first in a series of “How-To” instructional segments.  We get many questions about how to sign up for and use Google Analytics so the first few videos will cover Google Analytics and its various features and functionality; however if you have any requests for videos on other subjects please feel free to contact us.  Also, as this is our first training video we highly encourage you to comment below and let us know what you think of the video – please be brutally honest!

 

Written Instructions:

All you need to get started with Google Analytics is a GMail account.  If your business uses the Google applications suite and you have a business e-mail address hosted by Google that will work too.  To sign up for Google Analytics complete the following steps:

  1. Go to the Google Analytics home page and login by entering your regular Google (or corporate) credentials and clicking “Sign In”.
  2. On the next screen, click the “Sign Up” button.
  3. On the screen after that, enter:  1) The address of the first website you’d like to track with Google Analytics.  2)  Under “Account Name” enter a “nickname” that you can use to refer to this site within your Google Analytics dashboard.  3) Your country and 4) Your time zone.
  4. Then verify that everything is correct, and click “Continue”.
  5. On the following screen, simply complete the first name, last name, and country fields, and then again click “continue”.
  6. Read through the Google Analytics Terms of Service.
  7. If you agree to them, click the checkbox indicating your agreement and then click “Create New Account” button.
  8. Account setup is complete!
  9. (Optional)  Copy/Paste your custom Google Analytics tracking code for insertion into your website, e-mail the tracking code to someone, or continue on to your Google Analytics dashboard.
Read More

Google enhances Analytics tracking code

Google announced yesterday that it has finally released Asynchronous Tracking for its Analytics product.  Asynchronous tracking has been in beta testing/development for almost six months now so Denton Business Solutions is pretty excited that it’s finally out of beta testing and approved for general use.

According to Google the new code offers the following benefits:

  • Faster tracking code load times for your web pages due to improved browser execution
  • Enhanced data collection and accuracy
  • Elimination of tracking errors from dependencies when the JavaScript hasn’t fully loaded

Essentially, this “Google Analytics 2.0″ will give your business a more accurate depiction of its website’s actual statistics, as well as increase tracking code stability and page load times.  Ever since Google announced that it now includes website load times into its page rank algorithms, every little bit of speed one can squeeze out of a page load helps.  If you have any questions about Analytics or how to upgrade to its new tracking code drop us a line!

Read More