Hello,
I’m using the last version of matomo and i have problems about “ecomerce tracking”.
When a customer add a product i redirect to a page.
I send this information to my matomo
- Clear ecomerce
//reset the cart items in Matomo
_paq.push(['clearEcommerceCart']);
2.- loop to include all the products into the cart
//loop through each item to report cart data to Matomo
cartProducts.forEach(function(product) {
_paq.push(['addEcommerceItem',
product.productSKU,
product.productName,
product.productCategory,
product.price,
product.quantity
]);
});
3.- Calculte the total
//calculate the sum total of all cart items
var totalCartValue = cartProducts.reduce(function(total, product) {
return total + (product.price * product.quantity);
}, 0);
4.- Send all this information to Matomo
//push the cart data to Matomo
_paq.push(['trackEcommerceCartUpdate', totalCartValue]);
I do this every time my cart page loads.
The problem is that i have this information in matomo, always the tracking indicates “abandoned cart” and is not true…

Can anybody help me?
Thanks in advance.
1 post - 1 participant