My favorites | English | Sign in

Google Analytics

Tracking API: Event Tracking

This reference describes the methods that you use for setting up Event Tracking in Google Analytics reporting.

GATC Event Tracking Methods

Method Details

_trackEvent()

    _trackEvent(category, action, opt_label, opt_value)
    Constructs and sends the event tracking call to the Google Analytics Tracking Code. Use this to track visitor behavior on your website that is not related to a web page visit, such as interaction with a Flash video movie control or any user event that does not trigger a page request.

    parameters

      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.

      returns

        Boolean whether the event was successfully sent.