if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "35402",
"name": "Powerfly 5 Gen 3",
"price": "4199.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "grey_greenvisibility",
"list": "PRODUCTSEARCH",
"position": 1
}
,
{
"id": "41679",
"name": "Rail 9.5 Gen 4",
"price": "4799.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "greendark",
"list": "PRODUCTSEARCH",
"position": 2
}
,
{
"id": "41036",
"name": "Powerfly 4 625Wh Gen 4",
"price": "3999.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "greenlight_greydark",
"list": "PRODUCTSEARCH",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}