Resumen
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "41738",
"name": "Pasamontañas Trek Windshell",
"price": "24.99",
"brand": "Trek",
"category": "Cycling caps & headwear",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "41739",
"name": "Braga de cuello Trek Thermal",
"price": "19.99",
"brand": "Trek",
"category": "Cycling caps & headwear",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "41737",
"name": "Gorra de ciclismo Trek Windshell",
"price": "19.99",
"brand": "Trek",
"category": "Cycling caps & headwear",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "41736",
"name": "Sotocasco Trek Windshell",
"price": "17.99",
"brand": "Trek",
"category": "Cycling caps & headwear",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "46737",
"name": "Gorra de ciclismo réplica del equipo Lidl-Trek fabricada por Santini",
"price": "15.99",
"brand": "Santini",
"category": "Cycling caps & headwear",
"variant": "bluedark_yellow",
"list": "More Options",
"position": 5
}
,
{
"id": "41735",
"name": "Cinta para la cabeza Trek Thermal",
"price": "14.99",
"brand": "Trek",
"category": "Cycling caps & headwear",
"variant": "black",
"list": "More Options",
"position": 6
}
,
{
"id": "46743",
"name": "Braga para el cuello del equipo Lidl-Trek fabricada por Santini",
"price": "11.99",
"brand": "Santini",
"category": "Cycling caps & headwear",
"variant": "bluedark_yellow",
"list": "More Options",
"position": 7
}
,
{
"id": "22822",
"name": "Gorra de ciclismo Bontrager Classic",
"price": "10.0",
"brand": "Bontrager",
"category": "Cycling caps & headwear",
"variant": "pinkdark_black",
"list": "More Options",
"position": 8
}
,
{
"id": "27190",
"name": "Gorra de ciclismo Bontrager Adventure",
"price": "7.5",
"brand": "Bontrager",
"category": "Cycling caps & headwear",
"variant": "grey",
"list": "More Options",
"position": 9
}
]
}
});
} else {
console.log("dataLayer");
}