We have implemented a manual ecommerce tracking in our online store. Except for a strange behavior, everything works fine.
We track the shopping cart, which works fine and is visible in Matomo. However, when we call the event
“trackEcommerceOrder” the amounts are taken over correctly. However, the quantity is always set to “0”.
_paq.push(['addEcommerceItem',
"0123456789", // (Required) productSKU
"Ecommerce Analytics Book", // (Optional) productName
["Books", "Best sellers"], // (Optional) productCategory
9.99, // (Recommended) price
1 // (Optional, defaults to 1) quantity
]);
// Pass the Cart's Total Value as a numeric parameter
_paq.push(['trackEcommerceCartUpdate', 15.5]);
Can you share the code you used?
Can you add some console.log inside this code to be sure it is run?
Can you check in the browser console there is no JavaScript error?
At least, can you check in the browser network console that the cart update request is well sent?