Event Tracking in Google Analytics

July 7, 2009 at 9:25 pm
filed under Web Analytics
Tagged , , , , ,

This is my secret shame, but until today I never tried using event tracking.  Probably because I assumed (until I was informed today) that event tracking and page tagging involved writing complex JavaScript, when in fact all you’re doing is calling a function and adding variables.  I should have guessed that Google Analytics (and other software) would try to make this a painless process, but JavaScript still intimidates me sometimes.

I tested it out today by inserting events into the tabs in my portfolio pages in a simple onclick call:

<a href=”#” onClick=”pageTracker._trackEvent(‘Tabs’, ‘Click’, ‘Project 1′);”>

I won’t get any data until at least tomorrow (assuming anyone clicks on it, but I clicked on all of them to make sure it works).  Basically this code can be put into any section within your code that you want to track, such as downloads, video plays, clickthroughs, etc. Its a really powerful capability that I wish I would have tried out earlier but I think I’ll be using it plenty from here on out now that I see how easy it is.

All I had to worry about was the things inside the parentheses which translate to: ‘category’, ‘action’,'label’, ‘value‘.  The last 2 things are optional, but what is nice is that you can name these in almost any way you want so that they are descriptive and unique.  You can also keep categories and actions the same in different events if you want to associate like categories and actions.

Most depressing graph ever

Most depressing graph ever

Now I feel especially empowered to segment data further and drill down into the data of sites and pages to see what people are doing on the page for specific sections and dynamic elements. Web analytics is nerdy fun for me, don’t judge.

Aaaand…just as I quit all my soccer teams for the summer, I decided to play with the ZAAZ team. Oops.  Today I got to play some with Web Trends and Omniture and I’m looking forward to learning more about the cool things they can do. Though apparently Google Analytics is catching up quickly.

I also wonder if I will be able to take the Microsoft Connector to work even though I’m part-time there. I hope so. I’m always jealous of their wi-fi and clean looking shuttles.

UPDATE: Huzzah! It worked.

A less depressing table

A less depressing table

Share:
  • email
  • Twitter
  • Digg
  • del.icio.us
  • Facebook
  • LinkedIn
  • Reddit
  • StumbleUpon
  • Yahoo! Buzz

Related posts:

3 comments

RSS / trackback

respond

 

  1. Fun times with page tagging and social media segmentation | Intersections

    on July 24, 2009 at 4:27 pm

    [...] similar way, especially if someone has to decipher your tags later.  It seems almost necessary for Google Analytics, where the user has almost complete freedom in naming each part of the event tracking tag. I will [...]

  2. URLs in Google Analytics, Page Tagging Update, and Wow, its hot | Intersections

    on July 27, 2009 at 9:42 pm

    [...] at work finally gained some momentum on a project, got to do some event tracking, and figured out how to get rid of those pesky parameters appended to the end of URLs in Google [...]

  3. Having issues with event tracking in Google Analytics? Read on… | Intersections

    on July 29, 2009 at 10:40 pm

    [...] the event tracking on a site was not working, and someone thought it might be that I had missed a call to the ga.js [...]