Resumen
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "36287",
"name": "Gorra Trek Patch Trucker",
"price": "29.99",
"brand": "Trek",
"category": "Casual caps & hats",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "40642",
"name": "Trek Bicycle Co 5 Panel Hat",
"price": "23.99",
"brand": "Trek",
"category": "Casual caps & hats",
"variant": "orange",
"list": "More Options",
"position": 2
}
,
{
"id": "34748",
"name": "Gorro Trek Red Patch Beanie",
"price": "23.99",
"brand": "Trek",
"category": "Cycling caps & headwear",
"variant": "greydark",
"list": "More Options",
"position": 3
}
,
{
"id": "37339",
"name": "Gorro Trek Circle",
"price": "20.99",
"brand": "Trek",
"category": "Casual caps & hats",
"variant": "grey",
"list": "More Options",
"position": 4
}
,
{
"id": "45021",
"name": "Gorra de 5 paneles 100% Trek Factory Racing",
"price": "34.99",
"brand": "100%",
"category": "Casual caps & hats",
"variant": "black",
"list": "More Options",
"position": 5
}
,
{
"id": "35308",
"name": "Gorra Santini Trek-Segafredo Podium",
"price": "29.99",
"brand": "Santini",
"category": "Casual caps & hats",
"variant": "bluedark_white",
"list": "More Options",
"position": 6
}
,
{
"id": "45022",
"name": "Gorro de lana con pompón 100% Trek Factory Racing",
"price": "29.99",
"brand": "100%",
"category": "Casual caps & hats",
"variant": "black",
"list": "More Options",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}