|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.brsanthu.googleanalytics.GoogleAnalyticsRequest<DefaultRequest>
com.brsanthu.googleanalytics.DefaultRequest
public class DefaultRequest
Default request that captures default value for any of the parameters. Create an instance of
this object and specify as constructor parameter to GoogleAnalytics
or set one any time using
GoogleAnalytics.setDefaultRequest(DefaultRequest)
method.
Field Summary |
---|
Fields inherited from class com.brsanthu.googleanalytics.GoogleAnalyticsRequest |
---|
customDimentions, customMetrics, parms |
Constructor Summary | |
---|---|
DefaultRequest()
|
|
DefaultRequest(String hitType)
|
|
DefaultRequest(String hitType,
String trackingId,
String appName,
String appVersion)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DefaultRequest()
public DefaultRequest(String hitType)
public DefaultRequest(String hitType, String trackingId, String appName, String appVersion)
Method Detail |
---|
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 |
Category
ec=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 |
Action
ea=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 |
Label
el=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 |
55
ev=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 |
DatabaseError
exd=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 |
0
exf=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 |
Shoe
in=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.50
ip=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 |
4
iq=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 |
SKU47
ic=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 |
Blue
iv=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 |
EUR
cu=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 |
facebook
sn=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 |
like
sa=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.com
st=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 |
category
utc=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 |
lookup
utv=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 |
123
utt=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 |
label
utl=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 |
3554
plt=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 |
43
dns=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 |
500
pdt=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 |
500
rrt=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 |
500
tcp=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 |
500
srt=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 |
OD564
ti=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 |
Member
ta=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.47
tr=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.50
ts=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.20
tt=11.20
public Double txTax()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |