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.
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
18. 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?
19. I know that
half of my
advertising
dollars are
wasted…
I just don’t
know which
half.
- John Wanamaker
24. It Was Just One Line of Code*,
But When He Added It to WordPress,
What Happened Next Was Amazing.
* and a few clicks
25. 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
26.
27. 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
28. 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'
38. 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.
39.
40.
41. These values need to match the
category / action / label
specified in Contact Form 7