This post is mainly for our internal usage. When it comes to setting up google analytics tracking on our clients websites its always a case of – how do we do that again?
Anyways we were inspired to setup a resource page where we can continue to add up to date information on Google Analytics tracking.
The link below discusses how to track form submissions with Contact Form 7.
Your CF7 tracking code will look something like this:
[dt_code]
on_sent_ok: “ga(‘send’, ‘event’, ‘Contact Form’, ‘submit’, ‘contact page’);”
[/dt_code]
This stack overflow thread also discusses adding onclick tracking to links:
http://stackoverflow.com/questions/21147487/tracking-link-clicks-with-google-analytics
We use this tracking code generator to create specific tracking codes for our events: