if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "48618",
"name": "Powerfly FS+ 8 Gen 4",
"price": "6229.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "red_black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "48617",
"name": "Powerfly FS+ 6 Gen 4",
"price": "5079.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "48616",
"name": "Powerfly FS+ 4 Equipped Gen 4",
"price": "4269.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "orange_greendark",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "48614",
"name": "Powerfly FS+ 4 Gen 4",
"price": "4009.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "orange_greendark",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "37006",
"name": "Powerfly FS 7 Gen 3",
"price": "4049.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "tan",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "40673",
"name": "Powerfly FS 4 Gen 3",
"price": "3599.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "teal_greendark",
"list": "CATEGORY",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}