Hi all
We have implemented web pixels on different websites and we noticed that the event product_added_to_cart on some stores sends different data. In some stores, it is missing some values inside the data object. Let me share some examples:
example 1:
{
"id": "sh-XXXXXbc1-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"name": "product_added_to_cart",
"data": {
"cartLine": {
"cost": {
"totalAmount": {
"amount": 29.99,
"currencyCode": "GBP"
}
},
"merchandise": {
"id": "XXXXXXXXXXXXX",
"image": {
"src": "//example.com/path/to/image.jpg?v=1694167266"
},
"price": {
"amount": 29.99,
"currencyCode": "GBP"
},
"product": {
"title": "Product Title",
"vendor": "Vendor Name",
"id": "XXXXXXXXXXXXX",
"untranslatedTitle": "Product Title",
"url": "/products/product-url",
"type": ""
},
"sku": "SKU-XXXX-XXXX-XXXX",
"title": "Product Variation",
"untranslatedTitle": "Product Variation"
},
"quantity": 1
}
}
}
This example the product URL is missing the query “variant” and I can confirm this product has a variant.
Example 2:
{
"id": "sh-XXXXXb9-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"name": "product_added_to_cart",
"data": {
"cartLine": {
"cost": {
"totalAmount": {
"amount": 245,
"currencyCode": "GBP"
}
},
"merchandise": {
"id": "XXXXXXXXXXXXX",
"image": {},
"price": {
"amount": 245,
"currencyCode": "GBP"
},
"product": {
"id": "XXXXXXXXXXXXX",
"title": "Product Title",
"vendor": "Vendor Name"
},
"sku": "SKU-XXXX-XXXX-XXX",
"title": "Size / Variant"
},
"quantity": 1
}
}
}
This second example, as you can see is missing more attributes, but for me, the most important ones that are missing are: the image src URL and the product URL.
Does anyone know why is this happening?
Thanks in advance!