if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "41980",
"name": "Trek Oh Deer Beanie",
"price": "17.99",
"brand": "Trek",
"category": "Casual caps & hats",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "40146",
"name": "Camiseta Santini Trek-Segafredo Hombre",
"price": "15.0",
"brand": "Santini",
"category": "T-Shirts",
"variant": "red",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "40149",
"name": "Camiseta Santini Trek-Segafredo Team Mujer",
"price": "15.0",
"brand": "Santini",
"category": "T-Shirts",
"variant": "red",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "45021",
"name": "Gorra de 5 paneles 100% Trek Factory Racing",
"price": "34.99",
"brand": "100%",
"category": "Casual caps & hats",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
,
{
"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": "CATEGORY",
"position": 5
}
,
{
"id": "35308",
"name": "Gorra Santini Trek-Segafredo Podium",
"price": "29.99",
"brand": "Santini",
"category": "Casual caps & hats",
"variant": "bluedark_white",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "45020",
"name": "Gorra de rejilla 100% Trek Factory Racing",
"price": "29.99",
"brand": "100%",
"category": "Casual caps & hats",
"variant": "black",
"list": "CATEGORY",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}