©2008 Google -
Code Home -
Site Terms of Service -
Privacy Policy -
Site Directory
Google Code offered in:
中文 -
English -
Português -
Pусский -
Español -
日本語
This reference describes the methods that you use for setting up Event Tracking and Outbound Link Tracking in Google Analytics reporting.
_createEventTracker(objName) deprecated_trackEvent(action, opt_label, opt_value) deprecated_trackEvent(category, action, opt_label, opt_value)_createEventTracker(objName) Deprecated. Use _trackEvent() instead.
Creates an event tracking object with the specified name. Call this method when you want to create a new web page object to track in the Event Tracking section of the reporting. See the Event Tracking Guide for more information.
var videoTracker = pageTracker._createEventTracker("Videos");
String objName The name of the tracked object.
_gat.GA_EventTracker_ A new event tracker instance.
_trackEvent(action, opt_label, opt_value) Deprecated. Use _trackEvent(category, action, label, value) instead.
Constructs and sends the event tracking call to GATC via the event tracking object.
String eventType The type name for the event.
String opt_label An optional descriptor for the event.
Int opt_value An optional value to be aggregated with
the event.
Boolean whether the event was successfully sent.
_trackEvent(category, action, opt_label, opt_value)
String category The general event category (e.g. "Videos").
String action The action for the event (e.g. "Play").
String opt_label An optional descriptor for the event.
Int opt_value An optional value to be aggregated with
the event.
Boolean whether the event was successfully sent.