The <productTracking:displayProductEvent> tag is used to generate a behavior event when a user has received (viewed) a product impression, (typically an image). At least one of sku, categoryId, or documentId is required.
<tagName attribute="value" />
applicationName
Optional (String) - The webApp or application name, if applicable. Can be used to separate data when multiple storefronts are hosted on the same server (or persisted to the same database).
categoryId
Optional (String or Category object) - Category of the product associated with the content displayed, if applicable.
documentId
Optional (String) - Name of the item that is displayed, if applicable (that is, an image URL or banner ad ID).
documentType
Optional (String) - Type or category of the item that is displayed, if applicable.
Suggestions:
sku
Optional (String or ProductItem) - Object ID of the product associated with the content item that is displayed, if applicable. The sku is not normally required unless neither categoryId nor documentId is specified.
This example shows code that would follow the retrieval of a catalog item. The <BehaviorTracking:displayProductEvent> tag generates an event and passes the document's ID, type and SKU number of the product item.
<productTracking:displayProductEvent documentId="<%= item.getName() %>" documentType="<%= DisplayProductEvent.ITEM_BROWSE %>" sku="<%= item.getKey().getIdentifier() %>" />
<productTracking:clickProductEvent> Tag
<BehaviorTracking:clickContentEvent> Tag
<BehaviorTracking:displayContentEvent>
Tag