if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "36287",
"name": "Chapéu Trek Patch Trucker",
"price": "29.99",
"brand": "Trek",
"category": "Casual caps & hats",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "40642",
"name": "Trek Bicycle Co 5 Panel Hat",
"price": "23.99",
"brand": "Trek",
"category": "Casual caps & hats",
"variant": "orange",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "34748",
"name": "Gorro Trek Red Patch",
"price": "23.99",
"brand": "Trek",
"category": "Cycling caps & headwear",
"variant": "greydark",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "37339",
"name": "Gorro Trek Circle",
"price": "20.99",
"brand": "Trek",
"category": "Casual caps & hats",
"variant": "grey",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "45021",
"name": "Boné de 5 Painéis 100% Trek Factory Racing",
"price": "34.99",
"brand": "100%",
"category": "Casual caps & hats",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "35308",
"name": "Boné de Pódio da Equipa Santini Trek-Segafredo",
"price": "29.99",
"brand": "Santini",
"category": "Casual caps & hats",
"variant": "bluedark_white",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "45022",
"name": "Gorro 100% Trek Factory Racing",
"price": "29.99",
"brand": "100%",
"category": "Casual caps & hats",
"variant": "black",
"list": "CATEGORY",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}