if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "44893",
"name": "100% Trek Team Edition S2 HiPER Lens Sunglasses",
"price": "159.0",
"brand": "100%",
"category": "Cycling glasses",
"variant": "blue_red",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "44892",
"name": "100% Trek Team Edition S3 HiPER Lens Sunglasses",
"price": "159.0",
"brand": "100%",
"category": "Cycling glasses",
"variant": "blue_red",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "45021",
"name": "100% Trek Factory Racing 5 Panel Hat",
"price": "34.99",
"brand": "100%",
"category": "Casual caps & hats",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "45022",
"name": "100% Trek Factory Racing Pom Beanie",
"price": "29.99",
"brand": "100%",
"category": "Casual caps & hats",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}