public class ItemHit extends GoogleAnalyticsRequest<ItemHit>
For more information, see GA Parameters Reference
customDimentions, customMetrics, parms
Constructor and Description |
---|
ItemHit() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
currencyCode() |
ItemHit |
currencyCode(java.lang.String value)
|
java.lang.String |
itemCategory() |
ItemHit |
itemCategory(java.lang.String value)
|
java.lang.String |
itemCode() |
ItemHit |
itemCode(java.lang.String value)
|
java.lang.String |
itemName() |
ItemHit |
itemName(java.lang.String value)
|
java.lang.Double |
itemPrice() |
ItemHit |
itemPrice(java.lang.Double value)
|
java.lang.Integer |
itemQuantity() |
ItemHit |
itemQuantity(java.lang.Integer value)
|
java.lang.String |
txId() |
ItemHit |
txId(java.lang.String value)
|
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, 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, userAgent, userAgent, userId, userId, userIp, userIp, userLanguage, userLanguage, viewportSize, viewportSize
public ItemHit txId(java.lang.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 java.lang.String txId()
public ItemHit itemName(java.lang.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 java.lang.String itemName()
public ItemHit itemPrice(java.lang.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 java.lang.Double itemPrice()
public ItemHit itemQuantity(java.lang.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 java.lang.Integer itemQuantity()
public ItemHit itemCode(java.lang.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 java.lang.String itemCode()
public ItemHit itemCategory(java.lang.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 java.lang.String itemCategory()
public ItemHit currencyCode(java.lang.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 java.lang.String currencyCode()