Hi,
I created the new ecommerce events in the tag manager of Piwik per the guide (Ecommerce add-to-cart tag | Piwik PRO help center).
But in the debugger I am seeing:
Broken event
Error message: Tracking parameter `ec_products` has invalid value. Unable to deserialize ecommerce products JSON: invalid type: integer `39919`, expected a string at line 1 column 7
The event itself shows:
"ec_products": "[[39919,\"test product\",[\"item\",\"item category\"],149,1,\"\",\"classic\"]]",
Looking at the full event in the Datalayer I see both item_id and id. Where id is a string.
{
"event": "add_to_cart",
"ecommerce": {
"currency": "EUR",
"value": 169,
"items": [
{
"item_id": 39910,
"item_name": "test product",
"item_brand": "",
"price": 169,
"item_category": "item",
"item_category2": "item category",
"item_variant": "classic",
"quantity": "1",
"google_business_vertical": "retail",
"id": "39910"
}
]
},
"gtm.uniqueEventId": 30
}
Is there a typecast that I should create, or is this on your end?