HitBuilders.ItemBuilder
Stay organized with collections
Save and categorize content based on your preferences.
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
Inherited Method Summary
From class java.lang.Object
Object
|
clone()
|
boolean |
|
void |
finalize()
|
final Class<?>
|
getClass()
|
int |
hashCode()
|
final void |
notify()
|
final void |
notifyAll()
|
String
|
toString()
|
final void |
wait(long arg0, int arg1)
|
final void |
wait(long arg0)
|
final void |
wait()
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eHitBuilders.ItemBuilder\u003c/code\u003e is deprecated and replaced with a richer set of APIs on other HitBuilder classes.\u003c/p\u003e\n"],["\u003cp\u003eIt was used to send item-level sales data like transaction ID, item name, SKU, price, and quantity to Google Analytics.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers should now use \u003ccode\u003eaddProduct\u003c/code\u003e, \u003ccode\u003eaddImpression\u003c/code\u003e, \u003ccode\u003eaddPromo\u003c/code\u003e, and \u003ccode\u003esetAction\u003c/code\u003e for ecommerce data.\u003c/p\u003e\n"],["\u003cp\u003eTransaction ID, Item Name, SKU, price, and quantity are required for comprehensive item data reporting.\u003c/p\u003e\n"]]],["The `HitBuilders.ItemBuilder` class is deprecated; use `addProduct`, `addImpression`, `addPromo`, and `setAction` for ecommerce data. It was used to send item sales data to Google Analytics, requiring transaction ID, item name, SKU, price, and quantity. The methods included `setCategory`, `setCurrencyCode`, `setName`, `setPrice`, `setQuantity`, `setSku`, and `setTransactionId` to provide these details. It inherited methods for managing hit parameters, product actions, custom dimensions, and metrics.\n"],null,[]]