com.brsanthu.googleanalytics
Class EventHit

java.lang.Object
  extended by com.brsanthu.googleanalytics.GoogleAnalyticsRequest<EventHit>
      extended by com.brsanthu.googleanalytics.EventHit

public class EventHit
extends GoogleAnalyticsRequest<EventHit>

GA request to track events.

For more information, see GA Parameters Reference

Author:
Santhosh Kumar

Field Summary
 
Fields inherited from class com.brsanthu.googleanalytics.GoogleAnalyticsRequest
customDimentions, customMetrics, parms
 
Constructor Summary
EventHit()
           
EventHit(String eventCategory, String eventAction)
           
EventHit(String eventCategory, String eventAction, String eventLabel, Integer eventValue)
           
 
Method Summary
 String eventAction()
           
 EventHit eventAction(String value)
          
 String eventCategory()
           
 EventHit eventCategory(String value)
          

Event Tracking

 String eventLabel()
           
 EventHit eventLabel(String value)
          
 Integer eventValue()
           
 EventHit eventValue(Integer value)
          
 
Methods inherited from class com.brsanthu.googleanalytics.GoogleAnalyticsRequest
adwordsId, adwordsId, anonymizeIp, anonymizeIp, applicationName, applicationName, applicationVersion, applicationVersion, cacheBuster, cacheBuster, campaignContent, campaignContent, campaignId, campaignId, campaignKeyword, campaignKeyword, campaignMedium, campaignMedium, campaignName, campaignName, campaignSource, campaignSource, clientId, clientId, contentDescription, contentDescription, customDimention, customDimention, customDimentions, customMetric, customMetric, custommMetrics, displayadId, displayadId, documentEncoding, documentEncoding, documentHostName, documentHostName, documentPath, documentPath, documentReferrer, documentReferrer, documentTitle, documentTitle, documentUrl, documentUrl, flashVersion, flashVersion, fromBoolean, fromDouble, fromInteger, getBoolean, getDouble, getInteger, getParameters, getString, hitType, hitType, isEmpty, javaEnabled, javaEnabled, nonInteractionHit, nonInteractionHit, parameter, parameter, protocolVersion, protocolVersion, queueTime, queueTime, screenColors, screenColors, screenResolution, screenResolution, sessionControl, sessionControl, setBoolean, setDouble, setInteger, setString, toBoolean, toDouble, toInteger, toString, trackingId, trackingId, userLanguage, userLanguage, viewportSize, viewportSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EventHit

public EventHit()

EventHit

public EventHit(String eventCategory,
                String eventAction)

EventHit

public EventHit(String eventCategory,
                String eventAction,
                String eventLabel,
                Integer eventValue)
Method Detail

eventCategory

public EventHit eventCategory(String value)

Event Tracking

Optional.

Specifies the event category. Must not be empty.

Parameter Value Type Default Value Max Length Supported Hit Types
ec text None 150 Bytes event
Example value: Category
Example usage: ec=Category


eventCategory

public String eventCategory()

eventAction

public EventHit eventAction(String value)

Optional.

Specifies the event action. Must not be empty.

Parameter Value Type Default Value Max Length Supported Hit Types
ea text None 500 Bytes event
Example value: Action
Example usage: ea=Action


eventAction

public String eventAction()

eventLabel

public EventHit eventLabel(String value)

Optional.

Specifies the event label.

Parameter Value Type Default Value Max Length Supported Hit Types
el text None 500 Bytes event
Example value: Label
Example usage: el=Label


eventLabel

public String eventLabel()

eventValue

public EventHit eventValue(Integer value)

Optional.

Specifies the event value. Values must be non-negative.

Parameter Value Type Default Value Max Length Supported Hit Types
ev integer None None event
Example value: 55
Example usage: ev=55


eventValue

public Integer eventValue()


Copyright © Sep 2013–2013 brsanthu Inc. All rights reserved.