com.brsanthu.googleanalytics
Class ItemHit

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

public class ItemHit
extends GoogleAnalyticsRequest<ItemHit>

GA request to track items as part of ecommerce transaction.

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
ItemHit()
           
 
Method Summary
 String currencyCode()
           
 ItemHit currencyCode(String value)
          
 String itemCategory()
           
 ItemHit itemCategory(String value)
          
 String itemCode()
           
 ItemHit itemCode(String value)
          
 String itemName()
           
 ItemHit itemName(String value)
          
 Double itemPrice()
           
 ItemHit itemPrice(Double value)
          
 Integer itemQuantity()
           
 ItemHit itemQuantity(Integer value)
          
 String txId()
           
 ItemHit txId(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, 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

ItemHit

public ItemHit()
Method Detail

txId

public ItemHit 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
Example value: OD564
Example usage: ti=OD564


txId

public String txId()

itemName

public ItemHit 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
Example value: Shoe
Example usage: in=Shoe


itemName

public String itemName()

itemPrice

public ItemHit 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
Example value: 3.50
Example usage: ip=3.50


itemPrice

public Double itemPrice()

itemQuantity

public ItemHit 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
Example value: 4
Example usage: iq=4


itemQuantity

public Integer itemQuantity()

itemCode

public ItemHit 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
Example value: SKU47
Example usage: ic=SKU47


itemCode

public String itemCode()

itemCategory

public ItemHit 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
Example value: Blue
Example usage: iv=Blue


itemCategory

public String itemCategory()

currencyCode

public ItemHit 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
Example value: EUR
Example usage: cu=EUR


currencyCode

public String currencyCode()


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