if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "37008",
"name": "Powerfly FS 9 Equipped Gen 3",
"price": "5339.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "greydark_black",
"list": "PRODUCTSEARCH",
"position": 1
}
,
{
"id": "35271",
"name": "Powerfly FS 9 Equipped Gen 2",
"price": "5199.2",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "black",
"list": "PRODUCTSEARCH",
"position": 2
}
,
{
"id": "35356",
"name": "Rail 9 GX Gen 2",
"price": "4941.75",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "greendark_black",
"list": "PRODUCTSEARCH",
"position": 3
}
,
{
"id": "37015",
"name": "Rail 9.7 Gen 4",
"price": "4799.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "reddark",
"list": "PRODUCTSEARCH",
"position": 4
}
,
{
"id": "41679",
"name": "Rail 9.5 Gen 4",
"price": "4249.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "greendark",
"list": "PRODUCTSEARCH",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}