©2009 Google -
Code Home -
Terms of Service -
Privacy Policy -
Site Directory
Google Code offered in:
English -
Español -
日本語 -
한국어 -
Português -
Pусский -
中文(简体) -
中文(繁體)
This reference describes the methods that you use for setting up Event Tracking in Google Analytics reporting.
_trackEvent(category,
action, opt_label, opt_value)_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.