if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "44894",
"name": "Óculos de sol 100% Trek Team Edition Hypercraft HiPER Lens",
"price": "159.0",
"brand": "100%",
"category": "Cycling glasses",
"variant": "blue_red",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "44892",
"name": "Óculos de sol 100% Trek Team Edition S3 HiPER Lens",
"price": "159.0",
"brand": "100%",
"category": "Cycling glasses",
"variant": "blue_red",
"list": "CATEGORY",
"position": 2
}
,
{
"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": 3
}
,
{
"id": "45022",
"name": "Gorro 100% Trek Factory Racing",
"price": "29.99",
"brand": "100%",
"category": "Casual caps & hats",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}