|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.brsanthu.googleanalytics.GoogleAnalyticsRequest<ItemHit>
com.brsanthu.googleanalytics.ItemHit
public class ItemHit
GA request to track items as part of ecommerce transaction.
For more information, see GA Parameters Reference
| 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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ItemHit()
| Method Detail |
|---|
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 |
OD564ti=OD564
public String txId()
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 |
Shoein=Shoe
public String itemName()
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 |
3.50ip=3.50
public Double itemPrice()
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 |
4iq=4
public Integer itemQuantity()
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 |
SKU47ic=SKU47
public String itemCode()
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 |
Blueiv=Blue
public String itemCategory()
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 |
EURcu=EUR
public String currencyCode()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||