Resumen
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "23364",
"name": "Juego de cables y fundas de cambio Bontrager XXX",
"price": "74.99",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "23277",
"name": "Juego de fundas y cables de cambio Bontrager Pro",
"price": "39.99",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "23369",
"name": "Cable de cambio Bontrager Pro",
"price": "29.99",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "grey",
"list": "More Options",
"position": 3
}
,
{
"id": "23365",
"name": "Juego de cables y fundas de cambio Bontrager Elite",
"price": "29.99",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "23366",
"name": "Juego de cables y fundas de cambio Bontrager Comp",
"price": "24.99",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "white",
"list": "More Options",
"position": 5
}
,
{
"id": "23370",
"name": "Cable de cambio Bontrager Elite",
"price": "19.99",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "grey",
"list": "More Options",
"position": 6
}
,
{
"id": "23371",
"name": "Bontrager Comp Shift Cable",
"price": "7.99",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "grey",
"list": "More Options",
"position": 7
}
,
{
"id": "23363",
"name": "Juego de cables y fundas de cambio Bontrager",
"price": "3.99",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "More Options",
"position": 8
}
,
{
"id": "45327",
"name": "microSHIFT SL-M6285-R 8-Speed Shifter",
"price": "19.99",
"brand": "microSHIFT",
"category": "Bike shifters",
"variant": "black",
"list": "More Options",
"position": 9
}
,
{
"id": "45328",
"name": "microSHIFT SL-M6295-R 9-Speed Shifter",
"price": "19.99",
"brand": "microSHIFT",
"category": "Bike shifters",
"variant": "black",
"list": "More Options",
"position": 10
}
]
}
});
} else {
console.log("dataLayer");
}