Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Tracking Contact Form 7 
Enquiries with 
Google Analytics 
Tan Kian Ann 
10 September 2014 
WPUG Meetup
Contact Form 7
The most downloaded 
WordPress contact 
form plugin. Ever.
Contact Form 7 
19 Million!? 
Downloads 
5 x Lester ;)
Contact Form 7
Contact Form 7 
• AJAX contact form 
• Submissions are emailed to 
specified email addresses. 
• Super easy to setup 
– In...
Additional Settings Below
Google Analytics
FREE 
WEB 
ANALYTICS 
(harder to resist than cute kitty pics)
http://www.google.com/analytics
Be sure to use “Universal Analytics” 
i.e. The tracking code has: 
ga(‘create’, ‘UA-XXXXXX-XX’, ‘auto’); 
ga(‘send’, ‘page...
The Challenge
The Challenge 
• Websites focuses on generating enquiries 
(using Contact Form 7). 
• Spending $$$ on Facebook Ads, Google...
I know that 
half of my 
advertising 
dollars are 
wasted… 
I just don’t 
know which 
half. 
- John Wanamaker
The Idea
Google Analytics 
already tracks 
your visitor 
acquisition 
channels
When someone submits your enquiry form, 
we need Contact Form 7 to tell 
Google Analytics: 
“This visit resulted in an enq...
The Solution
It Was Just One Line of Code*, 
But When He Added It to WordPress, 
What Happened Next Was Amazing. 
* and a few clicks
Each Contact Form 7 form settings page has 
an “additional settings” field where you can 
specify javascript to run, using...
Triggering an “Event” in Google Analytics: 
on_sent_ok:" 
" 
ga('send', 'event', 
<category>, <action>, 
<label>, <value>)...
The one line of code to rule them all: 
on_sent_ok: "ga(''send', 'event’, 
event', 
'Contact Form', 'Submitted', 
'Cute Ki...
How would you know 
its working?
Go submit your form!
d
Only “Real Time” section is erm… real time. 
(the rest takes a day to show up)
Is that all there is?
There’s More!!
Configure Analytics Goals 
• Configure the event as a Goal (conversions). 
• Goal data is available on almost every panel ...
These values need to match the 
category / action / label 
specified in Contact Form 7
Mummy… 
its over!!!
Thank You  
Tan Kian Ann 
tankianann@gmail.com 
+65 96195806 
@tankianann 
fb.com/tankianann
Tracking Contact Form 7 Enquiries with Google Analytics
Tracking Contact Form 7 Enquiries with Google Analytics
Tracking Contact Form 7 Enquiries with Google Analytics
Tracking Contact Form 7 Enquiries with Google Analytics
Tracking Contact Form 7 Enquiries with Google Analytics
Tracking Contact Form 7 Enquiries with Google Analytics
Tracking Contact Form 7 Enquiries with Google Analytics
Tracking Contact Form 7 Enquiries with Google Analytics
Tracking Contact Form 7 Enquiries with Google Analytics
Tracking Contact Form 7 Enquiries with Google Analytics
Tracking Contact Form 7 Enquiries with Google Analytics
Tracking Contact Form 7 Enquiries with Google Analytics
Upcoming SlideShare
Loading in …5
×

Tracking Contact Form 7 Enquiries with Google Analytics

3,651 views

Published on

Slide deck for my talk at the Singapore WordPress User Group meetup at Hackerspace.sg on 10 Sep 2014.

The slides includes walkthroughs and explanations of how businesses can track their Contact Form 7 enquiries (on their WordPress website) using event tracking on Google Analytics.

Published in: Technology
  • Be the first to comment

Tracking Contact Form 7 Enquiries with Google Analytics

  1. 1. Tracking Contact Form 7 Enquiries with Google Analytics Tan Kian Ann 10 September 2014 WPUG Meetup
  2. 2. Contact Form 7
  3. 3. The most downloaded WordPress contact form plugin. Ever.
  4. 4. Contact Form 7 19 Million!? Downloads 5 x Lester ;)
  5. 5. Contact Form 7
  6. 6. Contact Form 7 • AJAX contact form • Submissions are emailed to specified email addresses. • Super easy to setup – Install plugin from WordPress – Create forms – Copy shortcode where you want the form
  7. 7. Additional Settings Below
  8. 8. Google Analytics
  9. 9. FREE WEB ANALYTICS (harder to resist than cute kitty pics)
  10. 10. http://www.google.com/analytics
  11. 11. Be sure to use “Universal Analytics” i.e. The tracking code has: ga(‘create’, ‘UA-XXXXXX-XX’, ‘auto’); ga(‘send’, ‘pageview’);
  12. 12. The Challenge
  13. 13. The Challenge • Websites focuses on generating enquiries (using Contact Form 7). • Spending $$$ on Facebook Ads, Google Adwords, Banners Ads etc. • How do you know which ad dollar is giving you more bang for your buck?
  14. 14. I know that half of my advertising dollars are wasted… I just don’t know which half. - John Wanamaker
  15. 15. The Idea
  16. 16. Google Analytics already tracks your visitor acquisition channels
  17. 17. When someone submits your enquiry form, we need Contact Form 7 to tell Google Analytics: “This visit resulted in an enquiry”
  18. 18. The Solution
  19. 19. It Was Just One Line of Code*, But When He Added It to WordPress, What Happened Next Was Amazing. * and a few clicks
  20. 20. Each Contact Form 7 form settings page has an “additional settings” field where you can specify javascript to run, using on_sent_ok Scroll all the way down
  21. 21. Triggering an “Event” in Google Analytics: on_sent_ok:" " ga('send', 'event', <category>, <action>, <label>, <value>) Google Analytics Event Tracking Documentation: https://developers.google.com/analytics/devguides/collection/analyticsjs/events
  22. 22. The one line of code to rule them all: on_sent_ok: "ga(''send', 'event’, event', 'Contact Form', 'Submitted', 'Cute Kitty Enquiry Form')" 'Contact Form', ’Submitted', Form'
  23. 23. How would you know its working?
  24. 24. Go submit your form!
  25. 25. d
  26. 26. Only “Real Time” section is erm… real time. (the rest takes a day to show up)
  27. 27. Is that all there is?
  28. 28. There’s More!!
  29. 29. Configure Analytics Goals • Configure the event as a Goal (conversions). • Goal data is available on almost every panel in Google Analytics. • Google Adwords can also import Google Analytics goals for conversion tracking.
  30. 30. These values need to match the category / action / label specified in Contact Form 7
  31. 31. Mummy… its over!!!
  32. 32. Thank You  Tan Kian Ann tankianann@gmail.com +65 96195806 @tankianann fb.com/tankianann

×