AI-generated Key Takeaways
-
HitBuilders.ItemBuilder
is deprecated and replaced with a richer set of APIs on other HitBuilder classes. -
It was used to send item-level sales data like transaction ID, item name, SKU, price, and quantity to Google Analytics.
-
Developers should now use
addProduct
,addImpression
,addPromo
, andsetAction
for ecommerce data. -
Transaction ID, Item Name, SKU, price, and quantity are required for comprehensive item data reporting.
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)
|