I recently authored a post that contained a couple of handy scripts to track YouTube views and outbound links in Google Analytics Event Tracking without having to markup your HTML. I recently found an even easier way to do the most common event tracking needs with just one script.
Cardinal Path, a leader in search engine marketing and web analysis, has an Analytics extension called Google Analytics on Steroids that accomplishes all the following event tracking:
- Download Tracking
- Outbound Link Tracking
- MaxScroll Tracking – very cool addition to find how far down your page users are scrolling
- Form Tracking
- Youtube Video Tracking
- Vimeo Video Tracking
- HTML5 Video/Audio Tracking
- MailTo Tracking
Installing the simple tag automatically adds all the above into your Analytics events reporting. You can download the gas.min.js script and install it on your site or reference it from cdnjs as show below. It automatically pulls the ga.js script. There is no option to pull the DoubleClick script (dc.js) if you are using Analytics to build remarketing lists.
The script also adds other features that can help with the following:
- Social Media Hit Tracking
- ECommerce Tracking using metas
- Cross Domain Setups
- Multi-account Tracking
- Changing Page Titles
- Extensible Custom Hooks (documentation)
Of course, this does not work with the universal analytics script (analytics.js), but I imagine they will release a version that will, and I’ll be sure to post when they do.