• Home
  • Google Analytics
    • Customizations
    • For Ecommerce
  • Speaking
  • About
    • About Me
    • Contact Me
    • Disclaimer and Privacy Policy

Analytics Talk

Digital Analytics for Business

You are here: Home / Event Tracking / Event Tracking Pt. 1: Overview & Data Model

Event Tracking Pt. 1: Overview & Data Model

Posted: October 16, 2007 32 Comments

One of the major new features announced by Google at the EMetrics summit is event tracking. There has been a lot of discussion in our industry about tracking events and only a few vendors offer this feature. I believe that Google is the third. Anyway, this post gives an overview of the new feature. Part 2 covers the actual implementation and part 3 covers the reporting.

What Are Events

an engaged visitorEvents are actions that visitors take on a web page that don’t generate new pageviews. Interacting with a video player, a widget or an audio player are all common events. Tracking these interactions provides a lot of insight into what visitors are doing on a page.

In the old GA we could track this data as a pageview. But this was really ineffective. First, it created lots of pageviews that polluted our true pageview numbers. Second, the reporting wasn’t built to handle events so it never provided any real insight. That’s why we now have event tracking.

Event tracking adds another layer of data to the visitor data hierarchy:

Visitors
Visits
Pageviews
Events

Now we can really get a good idea of how visitors are engaging our interactive content. This will be vital as web technologies, like Ajax and Flash, continue to evolve.

Every time an event occurs GA will increase the event counter. So if we’re tracking the click button event, GA will show us an agregate count of the clicks. I’ll cover the reporting in Part 3.

Start With Business Questions

Before I get into the structure of event data, I want to talk about analysis. All analysis starts with a business question. What is the most popular organic keyword that visitors searched for? How many sales did I have last week? What was the revenue for a specific campaign? Normally, when you’re using GA, you don’t need to do any special configuration to answer these questions. GA does most of it for you.

But with events, you need to create ALL of the data that will end up in GA. You literally need to define what data you want GA to collect both in name and in value. If you don’t know what business questions you want to answer, you won’t be able to create the correct data.

As I continue this post, I’m going to use an example, Google Maps. If I was an analyst for Maps I would want to answer a lot of questions:

How many people use the zoom and do they zoom in or out?
Which map view is most popular: map, satellite, hybrid, etc.
How many people drag a map waypoint to a new location?

To make things easy, let’s focus on one question: which map view its the most popular. So now that we know the question we want to answer, let’s talk about the data we need to answer it.

Understanding the Data Model

There are 4 parts to the events data model:

Objects
Actions
Labels
Values

Objects

Objects are parts of pages that we want visitors to interact with. This may be a video player or a cool Ajax widget. To continue our example, the object would be ‘Map’. Remember, the business question we want to answer concerns a feature in the map.

Actions

20071015-actions.pngThe second part of the data model is Actions. Actions are attached to an object and represent the actions that visitors perform on our object. Actions tell us what the visitor did.

There can be lots of actions associated with an object. Just think about our map. There are so many things that a visitor could do. But we want to define actions that relate directly to the business questions. Here are a few actions that our Map object might have:

Zoom
Change view type
Drag waypoint

Because we’re focused on one business question, we’re going to focus on one action: ‘Change view type’.

Labels

Labels quantify the action that occurred. If the actions tell us what the visitor did, the value tells us the result. So, for the ‘Change view type’ action that I created above, I might have the following labels:

Satellite
Map
Hybrid
Street view

Labels are really important to understanding actions. If an actions only has one value it does not provide any insight into what the visitor did.

Values

The final part of the data model is Values. Values are optional but can provide a lot of insight into certain events. Values can be any type of numeric data that indicates the value of the action and label. While there are not may good values for our example, let’s assign a monetary value to each label. Who knows, maybe someone viewing a hybrid map is worth more than someone viewing a regular map:

Satellite 5
Map 10
Hybrid 15
Street view 20

Values can also be monetary making it easy to identify what actions have real value.

Pulling it All Together

So let’s look at our business question and the data model we’re going to use to answer it.

Questtion:
Which view type do people use more?

Object:
Map

Action:
Change view type

Labels & Values:
Map 5
Satellite 10
Hybrid 15
Street Level 20

The next step is to implement the data model using event tracking code. That’s covered in Part 2. Oh, if the Google Maps team is reading, call me. I’m more than happy to lend a hand. :)

Filed Under: Event Tracking, Tracking Tagged With: Event Tracking, features, google-analytics

Comments

  1. Kevin says

    October 17, 2007 at 10:31 am

    Nice work! Will be very nice to see if someone watched a video or listened to an audio track within a page…
    Question, what is the cap on number of events? Does this upgrade open up the 4 goal limits?

    Thanks
    -Kevin

    Reply
  2. Justin says

    October 22, 2007 at 9:08 pm

    Hi Kevin,

    Thanks for the comment. I believe the limit on events is 500 per visit, but don’t hold me to that. Unfortunately the new upgrades do not include any changes to goal functionality.

    Thanks for reading and for the comment.

    Justin

    Reply
  3. Jahangir says

    October 28, 2007 at 2:47 am

    Excellent post Justin.

    I liked the way you elaborated carefully on the four components of events: Objects, Actions,Labels, Values.

    Your post gives us the right knowledge on exactly how to go about implementing event tracking.

    Thanks,
    Jahangir

    Reply
  4. jimmy says

    September 30, 2008 at 8:35 pm

    finally! someone shows IN DETAIL the necessary steps. great post, made my day a LOT easier :)

    Reply
  5. Rob says

    January 27, 2009 at 4:20 pm

    Maybe this is a silly question but… in your example

    var mapEventTracker = pageTracker._createEventTracker(‘Map’);

    I presume you have to state in the code for the page that the object is map – where do you do this?

    For example this object is on my website –

    what is the object name?

    Reply
  6. Justin Cutroni says

    February 11, 2009 at 3:29 pm

    Rob,

    The GA code for event tracking has actually changed. You no longer need to create an event object, You just need to add the event tracking code when the actions occur in your code.

    Check the GA code site for the updated code.

    Best,

    Justin

    Reply
  7. Josh Chambers says

    February 20, 2009 at 11:34 am

    Hey Justin,

    Can you confirm with the updates that we don’t need to call trackPageview before trackEvent?

    I don’t need to place my GA script above trackEvent in the new method, correct?

    Thanks!

    Reply
  8. Justin Cutroni says

    April 16, 2009 at 4:34 pm

    Josh,

    You don’t need to call trackPageview() before you track events. HOWEVER, you do need to call initData(). Also, if you don’t call trackPageview() then GA will not create a visit for the visitor, this can lead to some funky data.

    Thanks for the question,

    Justin

    Reply
  9. Qing Ru says

    October 28, 2009 at 8:52 pm

    Excellent post Justin! It’s kinda painful for a non-techie to be reading the GA documentation itself – i’m glad this clears things up a lil

    Reply
  10. Muhammad Aslam says

    March 14, 2012 at 11:49 am

    I am regularly reading books about analytics and now start reading your blog you are doing great work, Congrats :)

    Reply

Trackbacks

  1. Analytics Talk » Blog Archive » Event Tracking Pt. 2: Implementations says:
    October 16, 2007 at 9:41 am

    […] In this post I’m going to discuss how to implement event tracking in Google Analytics. If you have not read part 1, I strongly recommend you do so because I reference Part one extensively. When we implement event tracking we add code that creates the data model we defined in Part 1. We’re going to continue our example of tracking an event in Google Maps. We want to find out how which map view people use most. […]

    Reply
  2. Analytics Talk » Blog Archive » SiteScan for All! says:
    October 30, 2007 at 12:20 pm

    […] Google got a lot of attention last week when it introduced some really cool new features in Google Analytics. One of these features, Event Tracking, is enabled by a new version of the Google Analytics Tracking Code (GATC). […]

    Reply
  3. קוד חדש של גוגל אנליטיקס | בלוג אינטרנט says:
    January 2, 2008 at 3:00 am

    […] Event Tracking Part 1 – הוראות לשימוש בפונקציות מעקב אחר אירועים, מאת Justin Cutroni בבלוג המצוין של Epikone. כאן תמצאו גם את חלקים 2 ו-3 של המדריך. […]

    Reply
  4. Great Blog Posts From 2007 | Digital Alex - Marketing Strategy Blog by Alex Cohen says:
    January 8, 2008 at 12:41 am

    […] Event Tracking Pt 1: Overview & Data Model […]

    Reply
  5. Analytics Talk » Blog Archive » 2008 Google Analytics Resolutions says:
    January 13, 2008 at 11:05 pm

    […] Event Tracking Pt. 1: Overview & Data Model Event Tracking Pt. 2: Implementation Event Tracking Pt. 3: Reporting & Analysis […]

    Reply
  6. Analytics Talk » Blog Archive » Google Analytics: Thoughts on the Future says:
    February 1, 2008 at 5:30 am

    […] Google is poised to provide some amazing data about how people interact with video. The new Google Analytics Event tracking feature is a logical, structured way to measure visitor engagement with video and video ads. I really hope that event tracking is added to all YouTube videos so we can all measure the performance of video content. Once we know how visitors are engaging video we can choose optimal placement of video ads. […]

    Reply
  7. How long do your users spend on forms? | Imbimp.com says:
    January 22, 2009 at 6:04 am

    […] standard event tracking functions are documented in a number of places, (most helpfully on Justin’s EpikOne Blog) there is very little documentation about some of the extension functions that Google provides. […]

    Reply
  8. Event Tracking Now Available in All Accounts - Google Stuff says:
    June 4, 2009 at 3:37 pm

    […] here are some great resources to get you started:How to send Events to Google Analytics (Code site)Event Tracking Overview/Tutorial (Analytics Talk)Tracking Flash Videos with Event Tracking (Inside RIA)Note, your reports will not […]

    Reply
  9. eCommerce Share » Event Tracking Now Available in All Accounts says:
    June 4, 2009 at 4:42 pm

    […] Event Tracking Overview/Tutorial (Analytics Talk) […]

    Reply
  10. Event Tracking Now Available in All Accounts says:
    June 4, 2009 at 5:58 pm

    […] Event Tracking Overview/Tutorial (Analytics Talk) […]

    Reply
  11. 谷奥——探寻谷歌的奥秘 (http://google.org.cn) » Analytics对所有账户开放Event Tracking功能 says:
    June 5, 2009 at 8:46 pm

    […] 但是要记住,你需要先发送Event信息,才能在Event Tracking里面看到相应的报告,如果你还不知道如何发送Event信息的话,请参考1,2,3 […]

    Reply
  12. Event Tracking Now Available in All Accounts [via feedly] | Evan Mullins Circlecube ReBlog says:
    June 12, 2009 at 11:08 am

    […] Event Tracking Overview/Tutorial (Analytics Talk) […]

    Reply
  13. Event Tracking Now Available in All Accounts | LiftSEO says:
    June 13, 2009 at 9:42 am

    […] Event Tracking Overview/Tutorial (Analytics Talk) […]

    Reply
  14. Event Tracking Now Available in All Accounts | rapid-DEV.net says:
    June 15, 2009 at 12:24 am

    […] Event Tracking Overview/Tutorial (Analytics Talk) […]

    Reply
  15. Event Tracking Now Available in All Accounts | work4real says:
    June 16, 2009 at 6:56 am

    […] Event Tracking Overview/Tutorial (Analytics Talk) […]

    Reply
  16. 网站分析术语在WAA和Google Analytics的对照表 | 网站分析 Web Analytics says:
    December 3, 2009 at 9:59 pm

    […] Beta feature and may not be enabled in your account. You can read more about Event tracking in this post or on the GA Code […]

    Reply
  17. Tracking Internal Campaigns with Google Analytics – Analytics Talk says:
    March 30, 2010 at 7:18 am

    […] are a few correct ways to track internal campaigns. You could use Event Tracking, Custom Variables or Virtual Pageviews. But I like to use GA’s internal campaign tracking […]

    Reply
  18. Event tracking tutorial | Analytics for Marketers says:
    June 17, 2010 at 7:32 pm

    […] Analytics Talk fantastic Event Tracking Tutorial […]

    Reply
  19. 使用谷歌分析跟踪内部广告系列 - 肖庆的外贸网络营销博客 says:
    May 17, 2011 at 6:11 am

    […] are a few correct ways to track internal campaigns. You could use Event Tracking, Custom Variables or Virtual Pageviews. But I like to use GA’s internal campaign tracking […]

    Reply
  20. Advanced Content Tracking with Google Analytics: Part 1 – Analytics Talk says:
    February 21, 2012 at 10:11 am

    […] of the above can be tracked with Event Tracking. The concept is that we will fire events when certain actions happen. Specifically we’re […]

    Reply
  21. Go With The (Google Analytics Event) Flow – Analytics Talk says:
    March 27, 2012 at 8:51 am

    […] the new world of digital analytics we collect more than just pageviews. We also collect events, which we use to track the minute details of how people interact with a website or […]

    Reply
  22. Hits, Sessions & Users: Understanding Digital Analytics Data says:
    February 5, 2014 at 9:35 am

    […] An event is like a counter. It’s used to measure how often a user takes action on a piece of content. […]

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

My Books

Google Analytics by Justin Cutroni
Learn More on Amazon.com

Performance Marketing co-authored by Justin Cutroni
Learn More on Amazon.com

Recent Posts

  • Understanding the Google Analytics Cohort Report
  • Using Offline and Online data to drive Google Analytics Remarketing
  • Understanding Cross Device Measurement and the User-ID
  • Universal Analytics: Now out of beta!
  • Advanced Content Tracking with Universal Analytics

Categories

  • About Google Analytics (25)
  • Analysis (52)
  • Analytics Strategy (3)
  • Campaign Tracking (14)
  • Ecommerce (8)
  • Event Tracking (10)
  • Remarketing (2)
  • Reporting (10)
  • Resources (7)
  • Tag Management (5)
  • Tips (25)
  • Tracking (52)
  • Uncategorized (64)
  • Universal Analytics (9)
  • Web Analytics (15)

Copyright © 2023 ·News Pro Theme · Genesis Framework by StudioPress · WordPress