Google Analytics on Steroids

by Aris Abramian on August 15, 2012

in Analytics

Tracking is important, we all know that (right?). I’ve come across an Analytics package that takes Google Analytics reporting to another level.

This Analytics package allows you to track the following:

  1. Forms
  2. Outbound Links
  3. Scrolling
  4. Downloads
  5. YouTube Videos
  6. Vimeo Videos
  7. Mailto Links

Straight off the bat without any customisation. I’m all for collecting as much useful information so we can tailor our websites to give our visitors the best possible experience.

These will all be tracked by your Analytics as Events (which are an extremely under-utilised facility in Google Analytics). Installation is EXTREMELY simple and doesn’t require any coding knowledge.

If you’re interested in trying this out then follow these 3 easy steps.

Step 1: Download Google Analytics on Steroids

I’m calling it GAS because it’s short and the world needs more three letter acronyms (TLAs). You can get GAS here: http://cloud.github.com/downloads/CardinalPath/gas/gas.min.js. Save this file to the root of your website (e.g. http://www.mywebsite.com.au/gas.min.js)

Step 2: Replace your current GA code with the GAS tracking code

Make sure you replace UA-XXXXXX-X with your unique Analytics profile ID and don’t forget to change your domain name as well.

Edit: Thanks to Paul Thompson for pointing out that the src should be /gas.min.js!

<script type="text/javascript">
var _gas = _gas || [];
_gas.push(['_setAccount', 'UA-XXXXXX-X']); // REPLACE WITH YOUR GA NUMBER 
_gas.push(['_setDomainName', '.mydomain.com.au']); // REPLACE WITH YOUR DOMAIN 
_gas.push(['_trackPageview']); 
_gas.push(['_gasTrackForms']); 
_gas.push(['_gasTrackOutboundLinks']); 
_gas.push(['_gasTrackMaxScroll']); 
_gas.push(['_gasTrackDownloads']); 
_gas.push(['_gasTrackYoutube', {force: true}]); 
_gas.push(['_gasTrackVimeo', {force: true}]); 
_gas.push(['_gasTrackMailto']); 
 
(function() { var ga = document.createElement('script'); 
ga.type = 'text/javascript'; 
ga.async = true; 
ga.src = '/gas.min.js'; 
var s = document.getElementsByTagName('script')[0]; 
s.parentNode.insertBefore(ga, s); 
})();</script>

 Step 3: Analyse your results

You should begin to see events appearing in your profile in just over a day. When tracking with GAS, you’re measuring more than just the simple visits and traffic sources that everyone else is. Intricate details about your visitors’ behaviour should start appearing in your Analytics under Events. Combine GAS tracking with Custom Variables that I spoke about here and you’ll start to develop a detailed view of your visitors. That can only lead to improved visitor experience and that will lead to improved sales and converisons.

If you need any help with your Analytics or using GAS then feel free to leave a comment – I’ll be glad to help you make sense of it all!

Share!

  • http://www.annehoang.com.au Anne

    Interesting article Aris!

  • http://www.ewebmarketing.com.au Aris Abramian

    Thanks Anne!

  • Christopher West

    Hey anyone have some feedback on the results?

    • http://www.ewebmarketing.com.au Aris Abramian

      Hi Christopher,

      I have to say I’m quite pleased with it, The max scroll and Youtube tracking has helped us make a few decisions on landing page designs.

      It doesn’t however incorporate social tracking at the moment, which is a downside, but if you’re not bothered about missing out on social then I’d say it’s an excellent tool.

      Here’s a screenshot comparing converting visits and all traffic and how they treated a Youtube video that was on the landing page.

      Youtube Event (GAS)

  • http://twitter.com/thompsonpaul Paul Thompson

    Thanks for the info on your use of GAS, Aris. I’m about to try it out as well.

    One minor note on your instructions, as it’s possible someone with little experience may try to use your code snippet. In your instructions you provide the link to gas.min.js. but in the code snippet you reference the download location as /gas.js. That line will need the correct file name for it to work, yes?

    • Aris Abramian

      Hi Paul

      Thanks for pointing that out!, I’ve edited the post to be more user-friendly, and yes you are correct!

  • Brad Reppen

    I love GAS and use it as often as I can, would use it more if it were compatable with the DoubleClick dc.js code. My question though is about ecommerce. Have you used that? I understand the ga_trans and the ga_item, but do we still need a _gas.push(['_trackTrans']);? I didn’t see anything in the documentation. I’m planning to test today, but would rather not test on a client site. Do you know?

Previous post:

Next post: