Shopping cart tag

The WebSphere Commerce shopping cart tag collects details about the items a customer has in the shopping cart.

This tag collects the following data to pass to an external analytics system:

This tag can also pass extra parameters for tag customization.


Parameters

The following is a list of required and optional parameters for the shopping cart tag.

Note for IBM Digital Analytics: The following parameters are for the WebSphere Commerce <cm:cart /> tag. This tag generates the IBM Digital Analytics cmCreateShopAction5Tag data tag. To pass the shopping cart data that is listed at the beginning of this topic to an external analytics system, use one of the following parameters:

To send tax-related data to the external analytics system, use the following additional parameter:

To send more information to the external analytics system, use these parameters:


Tag versions

WebSphere Commerce provides two versions of the shopping cart tag:

  1. An abstract base tag implementation class: CartBaseTagCartJSONBaseTag. Analytics vendors who want to provide a shopping cart tag in their web analytics JSP tag library can extend this base tag class to get the shopping cart data and implement their own logic to generate the vendor-specific shopping cart tagging APIs.

  2. A default implementation of the shopping cart tag (<cm:cart />) for IBM Digital Analytics. This implementation automatically generates the IBM Digital Analytics cmCreateShopAction5Tag data tag.


Related concepts
IBM Digital Analytics, formerly known as Coremetrics Analytics integration with Web 2.0 starter stores
Passing extra data to IBM Digital Analytics with the extraparms parameter
Comparison of extra parameters for IBM Digital Analytics tags


Related reference
Use the shopping cart tag with IBM Digital Analytics