com.brsanthu.googleanalytics
Class TimingHit

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

public class TimingHit
extends GoogleAnalyticsRequest<TimingHit>

GA request to track performance timings like page load time, server response time etc.

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
TimingHit()
           
 
Method Summary
 Integer dnsTime()
           
 TimingHit dnsTime(Integer value)
          
 Integer pageDownloadTime()
           
 TimingHit pageDownloadTime(Integer value)
          
 Integer pageLoadTime()
           
 TimingHit pageLoadTime(Integer value)
          
 Integer redirectResponseTime()
           
 TimingHit redirectResponseTime(Integer value)
          
 Integer serverResponseTime()
           
 TimingHit serverResponseTime(Integer value)
          
 Integer tcpConnectTime()
           
 TimingHit tcpConnectTime(Integer value)
          
 String userTimingCategory()
           
 TimingHit userTimingCategory(String value)
          
 String userTimingLabel()
           
 TimingHit userTimingLabel(String value)
          
 Integer userTimingTime()
           
 TimingHit userTimingTime(Integer value)
          
 String userTimingVariableName()
           
 TimingHit userTimingVariableName(String 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, expirementId, expirementId, expirementVariant, expirementVariant, 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

TimingHit

public TimingHit()
Method Detail

userTimingCategory

public TimingHit userTimingCategory(String value)

Optional.

Specifies the user timing category.

Parameter Value Type Default Value Max Length Supported Hit Types
utc text None 150 Bytes timing
Example value: category
Example usage: utc=category


userTimingCategory

public String userTimingCategory()

userTimingVariableName

public TimingHit userTimingVariableName(String value)

Optional.

Specifies the user timing variable.

Parameter Value Type Default Value Max Length Supported Hit Types
utv text None 500 Bytes timing
Example value: lookup
Example usage: utv=lookup


userTimingVariableName

public String userTimingVariableName()

userTimingTime

public TimingHit userTimingTime(Integer value)

Optional.

Specifies the user timing value. The value is in milliseconds.

Parameter Value Type Default Value Max Length Supported Hit Types
utt integer None None timing
Example value: 123
Example usage: utt=123


userTimingTime

public Integer userTimingTime()

userTimingLabel

public TimingHit userTimingLabel(String value)

Optional.

Specifies the user timing label.

Parameter Value Type Default Value Max Length Supported Hit Types
utl text None 500 Bytes timing
Example value: label
Example usage: utl=label


userTimingLabel

public String userTimingLabel()

pageLoadTime

public TimingHit pageLoadTime(Integer value)

Optional.

Specifies the time it took for a page to load. The value is in milliseconds.

Parameter Value Type Default Value Max Length Supported Hit Types
plt integer None None timing
Example value: 3554
Example usage: plt=3554


pageLoadTime

public Integer pageLoadTime()

dnsTime

public TimingHit dnsTime(Integer value)

Optional.

Specifies the time it took to do a DNS lookup.The value is in milliseconds.

Parameter Value Type Default Value Max Length Supported Hit Types
dns integer None None timing
Example value: 43
Example usage: dns=43


dnsTime

public Integer dnsTime()

pageDownloadTime

public TimingHit pageDownloadTime(Integer value)

Optional.

Specifies the time it took for the page to be downloaded. The value is in milliseconds.

Parameter Value Type Default Value Max Length Supported Hit Types
pdt integer None None timing
Example value: 500
Example usage: pdt=500


pageDownloadTime

public Integer pageDownloadTime()

redirectResponseTime

public TimingHit redirectResponseTime(Integer value)

Optional.

Specifies the time it took for any redirects to happen. The value is in milliseconds.

Parameter Value Type Default Value Max Length Supported Hit Types
rrt integer None None timing
Example value: 500
Example usage: rrt=500


redirectResponseTime

public Integer redirectResponseTime()

tcpConnectTime

public TimingHit tcpConnectTime(Integer value)

Optional.

Specifies the time it took for a TCP connection to be made. The value is in milliseconds.

Parameter Value Type Default Value Max Length Supported Hit Types
tcp integer None None timing
Example value: 500
Example usage: tcp=500


tcpConnectTime

public Integer tcpConnectTime()

serverResponseTime

public TimingHit serverResponseTime(Integer value)

Optional.

Specifies the time it took for the server to respond after the connect time. The value is in milliseconds.

Parameter Value Type Default Value Max Length Supported Hit Types
srt integer None None timing
Example value: 500
Example usage: srt=500


serverResponseTime

public Integer serverResponseTime()


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