Docs suggest that this method has to be followed by a page view (_paq.push(["trackPageView"]);). This data will be available in one of the custom vars for the page view.
I’d start the setup with carts update and ecommerce orders which have dedicated reports in the platform.
Hi again. It’s better now But there’s one more thing - this function does not send any data to the tracker. It only prepares the virtual shopping cart to be sent with trackEcommerceCartUpdate or trackEcommerceOrder. So, please call one of those functions instead of trackPageView in this case.
Thanks a lot Kuba, I can now see carts correctly added through ecommerce reports.
Remains the transactions, do I also need to call [trackEcommerceCartUpdate] in addition to [trackEcommerceOrder]?
Below our current tag:
<script>
var _paq = _paq || [];
// track order
_paq.push(["trackEcommerceOrder",
{{ dlv - Confirmation - OrderID }}.toString(), // ID
{{ dlv - Confirmation - orderTotal }}, // grand total (value + tax + discount + shipping)
{{ dlv - Confirmation - totalOrderPriceWithoutShipping }}, // sub total (value + tax + discount)
{{ dlv - Confirmation - orderTotalWithoutTaxWithoutShipping }}, // value (without tax and without shipping)
]);
</script>
No, you don’t have to update the cart. You have to make sure that all the products are added to the cart. In your example that part is missing. Also, make sure that the format of passed arguments is correct (but I see you did that).
The 4th argument for the order should be the tax amount. Other than that, it looks ok. I might be missing something. Could you check it with the tracker debugger? Do you see any errors in browser’s console? Does this tag generate a request to the tracker endpoint?