Hi,
We are trying to track ecommerce Order placed through our website using Piwik. For this purpose I am using the Nextjs library offered by Piwik. As first step towards integration, I check the network tab to see if the appropriate event is being fired.
This works for the methods, ecommerceAddToCart, ecommerceProductDetailView, ecommerceRemoveFromCart but not for ecommerceOrder.
I get this error on the browser console when the ecommerceOrder function is called and I do not see the event triggered on the network tab:
Missing required SKU property in ecommerce product: [{"brand":"test_brand", "name": "test_product", "sku", "test_product_2_sample", "price":1000, "quantity":1, "category": "", "variant":"", "customDimensions":{}}].
I see the sku is set on the product object and it is of string format but for some reason it is not recognised. Can you please help us identify what may be the issue here.
Thank you.