The Difference Between Total and Unique Events in Google Analytics
- Google Analytics' Event Tracking feature only works with certain elements on your webpage. You can obtain statistical information using Event Tracking for videos, music clips and file downloads. Likewise, you can only track certain actions taken upon these files. These actions -- such as play, stop, pause, click or download -- are also part of the HTML method outlined in the next section.
- In order to get the total and unique event statistics for your website, you must first set up Event Tracking within your Google Analytics account. To do this, include the HTML tracking language in the source code for the download, image or widget for which you wish to obtain statistics. It will look like this: _trackEvent(category, action, opt_label, opt_value). Embedded in the HTML source code for a video, it will appear this way: <a onClick="_gaq.push(['_trackEvent(category, action, opt_label, opt_value)']);">Play</a>. The first two elements -- "category" and "action" -- are required. Category refers to the type of element you're tracking, such as a video or widget, while action refers to the type of action executed on the element, such as "play" or "download." The second two elements -- "opt_label" and "opt_value" -- are optional, and do not need to be included to obtain accurate statistics.
- Every time a visitor to your website executes the specified action on the specified file, Google Analytics' Event Tracking tool will note this. For example, if 300 different people clicked "Play" on your video file a total of 350 times, the total events for this would be 350. Google Analytics will compile this information over time, generating a downloadable file you can use to compare these statistics to each other -- from day to day, week to week or month to month -- as well as to other Event Tracking statistics used on other files.
- Unlike total events -- which tracks the action taken upon a file every time -- unique events are user-based. This means that the action is only logged the first time a visitor executes it. For example, if 300 different people clicked "Play" on your video file a total of 350 times, the unique events would be 300. Because of this difference, the number of total events will always be greater than or equal to the number of unique events.