com.google.gwt.gadgets.client
Interface GoogleAnalyticsFeature.Tracker

All Known Implementing Classes:
GoogleAnalyticsFeatureImpl.TrackerImpl
Enclosing interface:
GoogleAnalyticsFeature

public static interface GoogleAnalyticsFeature.Tracker

Provides a way of reporting event and page views.


Method Summary
 void reportEvent(java.lang.String eventName, java.lang.String action)
          Requires the name of the gadget and action parameter in order to correctly insert tracked data into Event Tracking reports.
 void reportEvent(java.lang.String eventName, java.lang.String action, java.lang.String label)
          Requires the name of the gadget and action parameter in order to correctly insert tracked data into Event Tracking reports.
 void reportEvent(java.lang.String eventName, java.lang.String action, java.lang.String label, int value)
          Requires the name of the gadget and action parameter in order to correctly insert tracked data into Event Tracking reports.
 void reportPageview(java.lang.String path)
          Requires a string in order to correctly populate the content reports.
 

Method Detail

reportEvent

void reportEvent(java.lang.String eventName,
                 java.lang.String action)
Requires the name of the gadget and action parameter in order to correctly insert tracked data into Event Tracking reports. The other parameters are optional. The values passed via this method are sent in the GIF request view the utm variable. Note: this feature is currently in closed beta test and may not be available to all users.

Parameters:
eventName - A string used at the top level of the Event Tracking reports. For example, if you were tracking interaction on a number of gadget elements, you would likely use the name of the gadget itself for this parameter, so that all interaction tracking for the gadget would be aggregated in the same section of the Google Analytics reports.
action - A string to further segment gadget interaction in the Event Tracking reports. For more information, see the Tracking Events

reportEvent

void reportEvent(java.lang.String eventName,
                 java.lang.String action,
                 java.lang.String label)
Requires the name of the gadget and action parameter in order to correctly insert tracked data into Event Tracking reports. The other parameters are optional. The values passed via this method are sent in the GIF request view the utm variable. * Note: this feature is currently in closed beta test and may not be available to all users.

Parameters:
eventName - A string used at the top level of the Event Tracking reports. For example, if you were tracking interaction on a number of gadget elements, you would likely use the name of the gadget itself for this parameter, so that all interaction tracking for the gadget would be aggregated in the same section of the Google Analytics reports.
action - A string to further segment gadget interaction in the Event Tracking reports. For more information, see the Tracking Events
label - String you can use as a secondary segment for your gadget.

reportEvent

void reportEvent(java.lang.String eventName,
                 java.lang.String action,
                 java.lang.String label,
                 int value)
Requires the name of the gadget and action parameter in order to correctly insert tracked data into Event Tracking reports. The other parameters are optional. The values passed via this method are sent in the GIF request view the utm variable. Note: this feature is currently in closed beta test and may not be available to all users.

Parameters:
eventName - A string used at the top level of the Event Tracking reports. For example, if you were tracking interaction on a number of gadget elements, you would likely use the name of the gadget itself for this parameter, so that all interaction tracking for the gadget would be aggregated in the same section of the Google Analytics reports.
action - A string to further segment gadget interaction in the Event Tracking reports. For more information, see the Tracking Events
label - String you can use as a secondary segment for your gadget.
value - Number that you can supply as a value for the gadget interaction. This number is aggregated for each time the method is invoked.

reportPageview

void reportPageview(java.lang.String path)
Requires a string in order to correctly populate the content reports. Typically this string is in the form of a path that you define for your reporting purposes. The value passed into this method is sent in the GIF request via the utm variable. Use this method to track gadget loads and gadget interactions.

Parameters:
path - Path to provide for the virtual URL of this element.