Hi, I need a bit of clarification about the cart operations. I hope someone can help.
As I understand it, Piwik Pro requires the entire cart content to be available whenever a cart update is made. For example, I have a product in my cart and I’m going to add another product now on another page. I need to push both items with the trackEcommerceCartUpdate event (with all their info like sku, name, category etc) when I’m adding the second one.
So, essentially I’m telling Piwik Pro what I currently have, not what changed. Is this explanation correct?
How about removing from cart? Let’s say two different items in my cart (3 of sku-123 and 4 of sku-456) and I want remove sku-123. I first run this:
_paq.push(["removeEcommerceItem", "sku-123"]);
and then this:
_paq.push(["trackEcommerceCartUpdate", 120]);
(with the total value of the items remaning in the cart)
Don’t I need to push an addEcommerceItem in between that contains all the remaining products (after removal) that I have in the cart?
_paq.push(["addEcommerceItem", "sku-456", "prod name", "category value", 30, 4]);
Also, the documentation says “if multiple units of that product are in the virtual cart, all of them will be removed”; so if I’m removing only 1 of sku-123, do I add everything again?
_paq.push(["addEcommerceItem", "sku-456", "prod name", "category value", 30, 4]);
_paq.push(["addEcommerceItem", "sku-123", "prod name2", "category value2", 20, 2]);
Finally, can we send event category, action and name information with these ecommerce events? So not only sending the item information but e_c, e_a and e_n with the same request.
This was long one. Thanks.