com.google.gwt.gadgets.client.impl
Class GoogleAnalyticsFeatureImpl.TrackerImpl

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.google.gwt.gadgets.client.impl.GoogleAnalyticsFeatureImpl.TrackerImpl
All Implemented Interfaces:
GoogleAnalyticsFeature.Tracker
Enclosing class:
GoogleAnalyticsFeatureImpl

public static class GoogleAnalyticsFeatureImpl.TrackerImpl
extends com.google.gwt.core.client.JavaScriptObject
implements GoogleAnalyticsFeature.Tracker

Provides a way of reporting event and page views.


Constructor Summary
protected GoogleAnalyticsFeatureImpl.TrackerImpl()
          Required protected constructor for JavaScriptObject subclass.
 
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.
 
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GoogleAnalyticsFeatureImpl.TrackerImpl

protected GoogleAnalyticsFeatureImpl.TrackerImpl()
Required protected constructor for JavaScriptObject subclass.

Method Detail

reportEvent

public final void reportEvent(java.lang.String eventName,
                              java.lang.String action)
Description copied from interface: GoogleAnalyticsFeature.Tracker
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.

Specified by:
reportEvent in interface GoogleAnalyticsFeature.Tracker
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

public final void reportEvent(java.lang.String eventName,
                              java.lang.String action,
                              java.lang.String label)
Description copied from interface: GoogleAnalyticsFeature.Tracker
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.

Specified by:
reportEvent in interface GoogleAnalyticsFeature.Tracker
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

public final void reportEvent(java.lang.String eventName,
                              java.lang.String action,
                              java.lang.String label,
                              int value)
Description copied from interface: GoogleAnalyticsFeature.Tracker
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.

Specified by:
reportEvent in interface GoogleAnalyticsFeature.Tracker
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

public final void reportPageview(java.lang.String path)
Description copied from interface: GoogleAnalyticsFeature.Tracker
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.

Specified by:
reportPageview in interface GoogleAnalyticsFeature.Tracker
Parameters:
path - Path to provide for the virtual URL of this element.