This class is deprecated.
This class has been deprecated in favor of a richer set of APIs on all the HitBuilder
classes. With the new approach, simply use addProduct, addImpression, addPromo and setAction
to add ecommerce data to any of the hits.
Item hit builder allows you to send item level sales data to Google Analytics. Transaction Id, Item Name, SKU price and quantity are required for meaningful reports on item data.
Public Constructor Summary
Public Method Summary
HitBuilders.ItemBuilder |
setCategory(String category)
|
HitBuilders.ItemBuilder |
setCurrencyCode(String
currencyCode)
|
HitBuilders.ItemBuilder | |
HitBuilders.ItemBuilder |
setPrice(double price)
|
HitBuilders.ItemBuilder |
setQuantity(long quantity)
|
HitBuilders.ItemBuilder | |
HitBuilders.ItemBuilder |
setTransactionId(String
transactionid)
|
Inherited Method Summary
T | |
T | |
T | |
Map<String, String> | |
String | |
final T | |
final T | |
T |
setCampaignParamsFromUrl(String
utmParams)
Parses and translates utm campaign parameters to analytics campaign
parameters and returns them as a map.
|
T | |
T |
setCustomMetric(int index, float metric)
Adds a custom metric to the current hit builder.
|
T | |
T | |
T |
setNonInteraction(boolean nonInteraction)
|
T |
setProductAction(ProductAction
action)
Sets a product action for all the products included in this hit.
|
T |