Hello,
I’m tracking my products orders on my ecommerce website by using the functions addEcommerceItem() and trackEcommerceCartUpdate() like this :
// Product Array
_paq.push(['addEcommerceItem',
"01234567890", // (required) SKU: Product unique identifier
"Ecommerce Analytics Book", // (optional) Product name
"Books", // (optional) Product category. You can also specify an array of up to 5 categories eg. ["Books", "New releases", "Biography"]
9.99, // (Recommended) Product Price
1 // (Optional - Defaults to 1)
]);
// Pass the Cart's Total Value as a numeric parameter
_paq.push(['trackEcommerceCartUpdate', 15.5]);
source : https://developer.matomo.org/api-reference/tracking-javascript#ecommerce
It works fine. But I don’t understand how to use the getEcommerceItems() function.
I get nothing with _paq.push([‘getEcommerceItems’]);
How am I supposed to use it correctly ?
Thanks for the help.