larixes
Forum Replies Created
-
Hi Tomi,
I just found and DataLayer example what I mean. It is on website: https://enhancedecommerce.appspot.com/
If you enter the product page to the dataLayer there are those data send:
“ecommerce”: {
“detail”: {
“products”: [
{
“id”: “f6be8”,
“name”: “Comverges T-Shirt”,
“price”: “33.00”,
“brand”: “Comverges”,
“category”: “T-Shirts”,
“position”: 0
}
]
},– as you can see there is no variant options, but If I click to add this product to the cart this data is pushed to dataLayer:
“event”: “addToCart”,
“ecommerce”: {
“currencyCode”: “USD”,
“add”: {
“products”: [
{
“id”: “f6be8”,
“name”: “Comverges T-Shirt”,
“price”: “33.00”,
“brand”: “Comverges”,
“category”: “T-Shirts”,
“variant”: “red”,
“dimension1”: “M”,
“position”: 0,
“quantity”: 1
}
]
}
},– this time with variant and some aditional dimensions ??
Can you give me some clues how I can edit your plugin to achive it.Thanks ??
Hi Tomi,
Thanks for your reply ??
I just realised that there are the different ID for different variations that’s why I use your option to use SKU instead of ID. Thanks to this every variation has the same ID now in Enhanced Ecommerce. I explain to you what I need to see in my Google Analtyics:1. Product Impression on category page – works perfectly!
2. Product Click – what product has been clicked on category page – no data
3. Product details – what product page has been visited by the user (doesn’t matter what variation has been chosen – I only need to know what was the product) – no data
4. AddToCart – What product variation has been added to cart – works perfect!Have you got any idea how to manage this? ??
Thanks,
Chris