Configure Google Analytics Conversions Track Events Contact Form 7

How To Configure Google Analytics Conversions Track Events Contact Form 7

Tracking conversions in Google Analytics using Contact Form 7 requires setup on Google Analytics Conversion Goals control and in the Contact Form 7 contact form Additional Settings.

The Additional Settings tab requires you to customize your button event to send Google Analytics the expected values.

This setup was quite a challenge for me to overcome because their were several factors preventing success that I had to work through. Apparently, this is a common need for many WordPress administrators but an even more common problem getting to work. I will explain in three steps:

  1. Obtaining your Google Analytics tracking code
  2. Preparing your Google Analytics account to track incoming data
  3. Configuring your Contact Form 7 “send” button to send Google Analytics the data
  4. Testing/Verification

Step 1:

Google has a javascript function for you to send the data. This is probably already on your site for general statistics tracking. Open an Incognito Window, open your website, then right click your page and View Page Source, then perform a Find or Search for “analytics” and you should jump to the javascript code. If you found it, then you can go to the next step, otherwise check out this article for adding the GA code.

Step 2:

In your Google Analytics account, click Admin, Goals, +New Goal. Now Custom, enter a name for the Goal, Event for type,

  1. Category (Equals to) “contact form”
  2. Action (Equals to) “submission”
  3. Label (Equals to) “my contact form”
  4. Create Goal to save

Configure Google Analytics Conversions Track Events Contact Form 7


Step 3:

Edit your contact form, click the Additional Settings tab, and add this code:

on_sent_ok: "__gaTracker('send', 'event', 'contact form', 'submission', 'my contact form');"

Now here is where many admins seem to be having trouble and I did as well. The issue is determining what your Google Analytics function is then making sure it is used here. In this case, __gaTracker is the function.

You will find your function back in Step 1. Perform your View Page Source search again for “analytics” this time at the end of the javascript look for the function name. Common names I’ve seen are “ga”, “__gaTracker”, “gaq.push”, and “gaq”. Just replace __gaTracker with the function name you happen to have.

gaq.push is a little different:

on_sent_ok: "_gaq.push(['_trackEvent', 'contact form', 'submission', 'my contact form']);"


In Google Analytics, at the top, click Reporting, expand Real Time, and click Conversions. This interface is displaying real-time data that GA is receiving from your website. So in another window, goto your Contact Form, fill it out, and hit send. Switch back to your GA, Real Time tab and you should see a hit!

If you see a hit then you’ve properly configured your form! Congrats! If not, please re-read the steps to verify you did everything and check that you didn’t overwrite a ( or ‘ in the button tracker code.

Many WordPress administrators have the need to track Contact Form 7 conversion data in Google Analytics. Configuring the button code to use the proper javascript function is vital.

Tips: When I was working through my troubleshooting, I eventually took the Contact Form 7 out of the formula by making a simple html page that had two things: 1. The GA javascript in the <head> and 2. a hyperlink with the GA tracking code. Here is an example:

<script type="text/javascript">
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),

__gaTracker('create', 'UA-34343434-34', 'auto');
__gaTracker('set', 'forceSSL', true);
__gaTracker('require', 'displayfeatures');
__gaTracker('require', 'linkid', 'linkid.js');


<a href="/c.html" target="_blank" onClick="__gaTracker('send', 'event', 'contact form', 'submission', 'my contact form');">Test</a>

The idea is to have a test link that I could use to verify that my tracking code and function were even working because I had the suspicion (I was correct) that the Contact Form 7 code needed tweaking. If you use this example, you MUST change the UA-343434′ line with your Tracker ID, check your View Source for this or you can find it in Google Analytics, Admin, Tracking Info, Tracking Code.

Finally, you should be aware that it takes a day or two for GA to start displaying your conversions in the normal area where you can run reports and analysis (not the Real-Time area).

Thanks for reading How To Configure Google Analytics Conversions Track Events Contact Form 7


Company Potluck – 4/27/2015

Company Potluck – 4/27/2015

We had a delicious potluck dinner tonight!

Lasagna, Potatoes, Salad, Chicken Pot Pie and Sponge Cake

Thanks everyone who came,  we will go again soon!

Michael & Janae
Raul & Raysa
Parker & Tracy
Mac & Maria




Matraex has moved

Matraex has moved

Matraex has outgrown our space at 1101 W Grove St in Boise. The space was great and everyone LOVES being downtown, but we were to big for the tight space.

We will be hiring 2 to 3 people in 2015, starting with a new Developer on January 5th, and so we decided to treat ourselves to a little holiday treat and find a larger space.

So we found an office with more than twice the space (at the historic Alaska Building about a block closer into downtown Boise and moved in on Monday the 15th of Decmber.

With a giant bank of windows looking out at Bogus Basin, we have been very happy with the amount of space and light.
Over the coming weeks we will be adding our unique blend of geeky design to the office space.

The new address is, all those that would like to use the mail to send us anything, please send it to the address below:

1020 W Main St
Suite 250
Boise, Idaho 83702

8Th Annual Matraex River Trip (Survivors)

8Th Annual Matraex River Trip (Survivors)

We completed the 8th1 Annual Matraex Trip and everyone returned safe and sound.  We all got wet to varying degrees, everyone got tossed around, one tossed half out (but wholly rescued).  Other than one knee-bruised rib and a single rib-bruised knee, we ended the day with smiles all around.  Here are some highlights of the trip this year:

1 – The 8th annual Matraex river trip is only one year after the second 6th2 annual Matraex river trip.
2 – Basically this was the 8th because the 6th3 happened twice, and there never was a 7th.
3 – It was actually the 5th that happened twice, and there never was a 6th, the 7th trip actually happened.

AMRT 8.1
AMRT 8.2
AMRT 8.3
AMRT 8.4
AMRT 8.5
AMRT 8.6
AMRT 8.7

Employee Appreciation Night – Idaho Steelheads Hockey

Employee Appreciation Night – Idaho Steelheads Hockey

The crew at Matraex headed down to the Century Link Arena to watch the Idaho Steelheads play against the Colorado SomethingSomethings.  The group of 13 (including some family that came along) sat just behind the east goal and caught some great action.

Unfortunately The Steelheads lost, but the everyone enjoyed the show!


Family Bowling Night

Family Bowling Night

At 6:00 Wednesday October 3rd Matraex employees with their families had a bowling night at Big Al’s. It was great to get together with coworkers, spouses and the kids and spend some time having fun and getting to know the families. John was the experienced bowler of our bunch scoring an impressive 199. We are learning that John is a man of many talents.


Bowling at Big Als
Wednesday October 3rd

Matraex 5th Annual Rafting Trip

Matraex 5th Annual Rafting Trip

In our annual tradition we broke away for the afternoon and went Rafting on the South Fork of the Payette River.

It was July 25th, 2008,  a Friday afternoon,  we closed up shop and headed up to Banks, Idaho.
The previous 3 years we rafted the Boise Main but this time around we thought we try something a bit more intense.

Matraex 4th Annual Rafting

Here’s our seating chart in case you don’t recognize us in the hats.

Front Left – John Lyon
Front Right – Andre Nosalsky
Middle Left – Michael Porterr
Middle Right – Becky Gilmore
Back Left – Ryan Smith
Back Right – Michael Blood

Bronco Billy, Staircase, Dog Leg and even a dead elk along the way,  everyone had fun and stopped at the Mexican Restaurant in Horseshoe Bend for dinner and drinks like we do every year. (I dont remember the name it changes every year)

We tossed the idea around of a full day rafting trip with a campout the night before for next years trip.

Thanks to Bear Valley River Co. for the tour.

There are more pictures on Flickr.

Call Now Button(208) 344-1115


Join our email list

and get your free whitepaper