Date post: | 17-Jan-2015 |
Category: |
Technology |
Upload: | kian-ann-tan |
View: | 258 times |
Download: | 1 times |
Tracking Contact Form 7 Enquiries with
Google Analytics
Tan Kian Ann10 September 2014
WPUG Meetup
Contact Form 7
The most downloadedWordPress contactform 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– Install plugin from
WordPress– Create forms– Copy shortcode where you
want the form
Additional Settings Below
Google Analytics
FREEWEBANALYTICS(harder to resist than cute kitty pics)
Be sure to use “Universal Analytics”i.e. The tracking code has:ga(‘create’, ‘UA-XXXXXX-XX’, ‘auto’);ga(‘send’, ‘pageview’);
The Challenge
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?
I know that half of my advertising dollars are wasted…
I just don’t know which half.
- John Wanamaker
The Idea
Google Analyticsalready 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 enquiry”
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 on_sent_ok
Scroll all the way down
on_sent_ok:"
"
ga('send', 'event', <category>, <action>, <label>, <value>)
Google Analytics Event Tracking Documentation:https://developers.google.com/analytics/devguides/collection/analyticsjs/events
Triggering an “Event” in Google Analytics:
The one line of code to rule them all:
on_sent_ok: "ga('send', 'event', 'Contact Form', 'Submitted', 'Cute Kitty Enquiry Form')"
on_sent_ok: "ga('send', 'event', 'Contact Form', 'Submitted', 'Cute Kitty Enquiry Form')"
'send', 'event’,'Contact Form', ’Submitted', 'Cute Kitty Enquiry Form'
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 in Google Analytics.
• Google Adwords can also import Google Analytics goals for conversion tracking.
These values need to match the category / action / label specified in Contact Form 7
Mummy…its over!!!