Hi,
I added custom dimensions in trackEcommerceOrder but purchase tracking no longer works :
(Google Tag Manager)
<script>
var subTotal = {{ecommerce.purchase.actionField.revenue}} - {{ecommerce.purchase.actionField.shipping}};
_paq.push(["addEcommerceItem",
"{{ecommerce.purchase.products.0.id}}", // SKU
"{{ecommerce.purchase.products.0.name}}", // name
"{{ecommerce.purchase.products.0.category}}", // category
{{ecommerce.purchase.products.0.price}}, // price
parseFloat({{ecommerce.checkout.products.0.quantity}}) // quantity
]);
// custom
_paq.push(['setCustomDimensionValue', 7, '{{ecommerce.checkout.products.0.dimension9}}']); //custom-9
_paq.push(['setCustomDimensionValue', 8, '{{ecommerce.checkout.products.0.dimension10}}']); //custom-10
// track order
_paq.push(["trackEcommerceOrder",
"{{ecommerce.purchase.actionField.id}}", // ID
{{ecommerce.purchase.actionField.revenue}}, // grand total (value + tax + discount + shipping)
subTotal, // sub total (value + tax + discount)
0, // tax
{{ecommerce.purchase.actionField.shipping}}, // shipping
0 // discount
]);
</script>
This method however seems to work for trackEcommerceCartUpdate and addEcommerceItem.
Thanks