public class DefaultRequest extends GoogleAnalyticsRequest<DefaultRequest>
GoogleAnalyticsImpl or set one any time using
GoogleAnalyticsBuilder#withDefaultRequest(DefaultRequest) method.customDimensions, customMetrics, delegateExecutor, parms| Constructor and Description |
|---|
DefaultRequest() |
DefaultRequest(String hitType) |
DefaultRequest(String hitType,
String trackingId,
String appName,
String appVersion) |
adwordsId, adwordsId, anonymizeIp, anonymizeIp, applicationId, applicationId, applicationInstallerId, applicationInstallerId, applicationName, applicationName, applicationVersion, applicationVersion, cacheBuster, cacheBuster, campaignContent, campaignContent, campaignId, campaignId, campaignKeyword, campaignKeyword, campaignMedium, campaignMedium, campaignName, campaignName, campaignSource, campaignSource, clientId, clientId, contentDescription, contentDescription, customDimension, customDimension, customDimensions, customMetric, customMetric, custommMetrics, dataSource, dataSource, displayadId, displayadId, documentEncoding, documentEncoding, documentHostName, documentHostName, documentPath, documentPath, documentReferrer, documentReferrer, documentTitle, documentTitle, documentUrl, documentUrl, experimentId, experimentId, experimentVariant, experimentVariant, flashVersion, flashVersion, fromBoolean, fromDouble, fromInteger, geoid, geoid, getBoolean, getDouble, getInteger, getParameters, getString, hitType, hitType, javaEnabled, javaEnabled, nonInteractionHit, nonInteractionHit, parameter, parameter, protocolVersion, protocolVersion, queueTime, queueTime, screenColors, screenColors, screenResolution, screenResolution, send, sendAsync, sessionControl, sessionControl, setBoolean, setDouble, setExecutor, setInteger, setString, toBoolean, toDouble, toInteger, toString, trackingId, trackingId, userAgent, userAgent, userId, userId, userIp, userIp, userLanguage, userLanguage, viewportSize, viewportSizepublic DefaultRequest()
public DefaultRequest(String hitType)
public DefaultRequest eventCategory(String value)
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 |
Categoryec=Category public String eventCategory()
public DefaultRequest 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 |
Actionea=Action public String eventAction()
public DefaultRequest eventLabel(String value)
Optional.
Specifies the event label.
| Parameter | Value Type | Default Value | Max Length | Supported Hit Types |
|---|---|---|---|---|
el |
text | None | 500 Bytes | event |
Labelel=Label public String eventLabel()
public DefaultRequest 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 |
55ev=55 public Integer eventValue()
public DefaultRequest exceptionDescription(String value)
Optional.
Specifies the description of an exception.
| Parameter | Value Type | Default Value | Max Length | Supported Hit Types |
|---|---|---|---|---|
exd |
text | None | 150 Bytes | exception |
DatabaseErrorexd=DatabaseError public String exceptionDescription()
public DefaultRequest exceptionFatal(Boolean value)
Optional.
Specifies whether the exception was fatal.
| Parameter | Value Type | Default Value | Max Length | Supported Hit Types |
|---|---|---|---|---|
exf |
boolean | 1 |
None | exception |
0exf=0 public Boolean exceptionFatal()
public DefaultRequest itemName(String value)
Required for item hit type.
Specifies the item name.
| Parameter | Value Type | Default Value | Max Length | Supported Hit Types |
|---|---|---|---|---|
in |
text | None | 500 Bytes | item |
Shoein=Shoe public String itemName()
public DefaultRequest itemPrice(Double value)
Optional.
Specifies the price for a single item / unit.
| Parameter | Value Type | Default Value | Max Length | Supported Hit Types |
|---|---|---|---|---|
ip |
currency | 0 |
None | item |
3.50ip=3.50 public Double itemPrice()
public DefaultRequest itemQuantity(Integer value)
Optional.
Specifies the number of items purchased.
| Parameter | Value Type | Default Value | Max Length | Supported Hit Types |
|---|---|---|---|---|
iq |
integer | 0 |
None | item |
4iq=4 public Integer itemQuantity()
public DefaultRequest itemCode(String value)
Optional.
Specifies the SKU or item code.
| Parameter | Value Type | Default Value | Max Length | Supported Hit Types |
|---|---|---|---|---|
ic |
text | None | 500 Bytes | item |
SKU47ic=SKU47 public String itemCode()
public DefaultRequest itemCategory(String value)
Optional.
Specifies the category that the item belongs to.
| Parameter | Value Type | Default Value | Max Length | Supported Hit Types |
|---|---|---|---|---|
iv |
text | None | 500 Bytes | item |
Blueiv=Blue public String itemCategory()
public DefaultRequest currencyCode(String value)
Optional.
When present indicates the local currency for all transaction currency values. Value should be a valid ISO 4217 currency code.
| Parameter | Value Type | Default Value | Max Length | Supported Hit Types |
|---|---|---|---|---|
cu |
text | None | 10 Bytes | transaction, item |
EURcu=EUR public String currencyCode()
public DefaultRequest socialNetwork(String value)
Required for social hit type.
Specifies the social network, for example Facebook or Google Plus.
| Parameter | Value Type | Default Value | Max Length | Supported Hit Types |
|---|---|---|---|---|
sn |
text | None | 50 Bytes | social |
facebooksn=facebook public String socialNetwork()
public DefaultRequest socialAction(String value)
Required for social hit type.
Specifies the social interaction action. For example on Google Plus when a user clicks the +1 button, the social action is 'plus'.
| Parameter | Value Type | Default Value | Max Length | Supported Hit Types |
|---|---|---|---|---|
sa |
text | None | 50 Bytes | social |
likesa=like public String socialAction()
public DefaultRequest socialActionTarget(String value)
Required for social hit type.
Specifies the target of a social interaction. This value is typically a URL but can be any text.
| Parameter | Value Type | Default Value | Max Length | Supported Hit Types |
|---|---|---|---|---|
st |
text | None | 2048 Bytes | social |
http://foo.comst=http%3A%2F%2Ffoo.com public String socialActionTarget()
public DefaultRequest 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 |
categoryutc=category public String userTimingCategory()
public DefaultRequest 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 |
lookuputv=lookup public String userTimingVariableName()
public DefaultRequest 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 |
123utt=123 public Integer userTimingTime()
public DefaultRequest 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 |
labelutl=label public String userTimingLabel()
public DefaultRequest 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 |
3554plt=3554 public Integer pageLoadTime()
public DefaultRequest 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 |
43dns=43 public Integer dnsTime()
public DefaultRequest 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 |
500pdt=500 public Integer pageDownloadTime()
public DefaultRequest 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 |
500rrt=500 public Integer redirectResponseTime()
public DefaultRequest 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 |
500tcp=500 public Integer tcpConnectTime()
public DefaultRequest 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 |
500srt=500 public Integer serverResponseTime()
public DefaultRequest txId(String value)
Required for transaction hit type.
Required for item hit type.
A unique identifier for the transaction. This value should be the same for both the Transaction hit and Items hits associated to the particular transaction.
| Parameter | Value Type | Default Value | Max Length | Supported Hit Types |
|---|---|---|---|---|
ti |
text | None | 500 Bytes | transaction, item |
OD564ti=OD564 public String txId()
public DefaultRequest txAffiliation(String value)
Optional.
Specifies the affiliation or store name.
| Parameter | Value Type | Default Value | Max Length | Supported Hit Types |
|---|---|---|---|---|
ta |
text | None | 500 Bytes | transaction |
Memberta=Member public String txAffiliation()
public DefaultRequest txRevenue(Double value)
Optional.
Specifies the total revenue associated with the transaction. This value should include any shipping or tax costs.
| Parameter | Value Type | Default Value | Max Length | Supported Hit Types |
|---|---|---|---|---|
tr |
currency | 0 |
None | transaction |
15.47tr=15.47 public Double txRevenue()
public DefaultRequest txShipping(Double value)
Optional.
Specifies the total shipping cost of the transaction.
| Parameter | Value Type | Default Value | Max Length | Supported Hit Types |
|---|---|---|---|---|
ts |
currency | 0 |
None | transaction |
3.50ts=3.50 public Double txShipping()
public DefaultRequest txTax(Double value)
Optional.
Specifies the total tax of the transaction.
| Parameter | Value Type | Default Value | Max Length | Supported Hit Types |
|---|---|---|---|---|
tt |
currency | 0 |
None | transaction |
11.20tt=11.20 public Double txTax()
Copyright © Sep 2013–2019 Mike Hardy. All rights reserved.