0

I try to track an e-commerce order with the piwik.php api. I can see the order amount but no items.

ec_items — Items in the Ecommerce order. This is a JSON encoded array of items. Each item is an array with the following info in this order: item sku, item name, item category, item price, item quantity.

My json code for 1 order is:

[["sku","name","publisher","item-amount",1]]

Where is my mistake?

BDL
  • 21,052
  • 22
  • 49
  • 55
Phillipp
  • 1,425
  • 2
  • 12
  • 27

1 Answers1

0

Your code must show similar like this:

_paq.push(['addEcommerceItem','sku','ProductName','CategoryName','price','amount']);

Required parameters:

  • addEcommerceItem
  • sku

Recommended:

  • price

Optional:

  • ProductName
  • CategoryName
  • amount

Then you must create your order to specify the order details to Piwik server.

Philip G
  • 4,098
  • 2
  • 22
  • 41
Angel
  • 1