Area: Episerver Perform, Episerver Reach
Applies to versions: 1.0 and higher (Server-to-Server API)

Basket page tracking request

To track a basket page, provide a list of products in the basket along with the currency, quantity and price.

Note: In Episerver Commerce, a basket is known as a shopping cart or a cart.

The quantity and price elements should be the same as the ones the user is viewing. So if there is a discount, provide the discounted price.

Price is the price per unit. For example, if a basket has 3 units, and each unit costs £10, the value of price is 10.

Basket Element containing basket specific sub-elements.  
        items List of checkout items.  


Product reference code.

The refCode must exactly match the refCode (guid) in the product catalog feed. If you have a custom feed, contact Episerver to find out which field from the feed is a product identifier.

    qty  Quantity. [Number]
    price Unit price. [Number]

The product variant’s SKU code. Alternatively, the product variant’s colour and size attributes can be supplied instead.

By arrangement with Episerver, these can be replaced with another product attribute.


Sub-elements are of the type [String].

See the Variant tracking section.

      currency Currency code. See Currency codes.
  basketId [Optional] Link a specific shopping basket in a Trigger campaign. See Link to a specific basket.

Basket page tracking request example.

	"type"		:	"basket",
	"ip"		:	"",
	"session"	:	"155780550/hKugo5RQsqecUpmlWE6EpFWqmalVrJU",
	"cuid"		:	"143159800/hKugo5RQsqecUpmlWE6Eo1OklrJYp5U",
	"site"		:	"retailer",
	"clientToken"	:	"1234abcd5678",
	"channel"	:	"web",
	"lang"		:	"en-gb",
	"currentURI"	:	"www.retailer.com/basket.html",
	"previousURI"	:	"www.retailer.com/product/RC123.html",
	"userAgent"	:	"Mozilla/5.0 (Windows NT 10.0; WOW64)
          AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36",
	"basket"	: {
	      "items"	  : [
		      { "refCode":  "RC123", "qty":  5,  "price":  50.5 },
		      { "refCode":  "RC124", "qty":  8,  "price":  52.5 }
	      "currency"  : "GBP"

Related topic

Last updated: Nov 06, 2017