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?
Your code must show similar like this:
_paq.push(['addEcommerceItem','sku','ProductName','CategoryName','price','amount']);
Required parameters:
Recommended:
Optional:
Then you must create your order to specify the order details to Piwik server.