if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "30255",
"name": "Allant+ 8S",
"price": "4099.0",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "grey",
"list": "PRODUCTSEARCH",
"position": 1
}
,
{
"id": "30463",
"name": "Allant+ 7",
"price": "3119.2",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "bluedark",
"list": "PRODUCTSEARCH",
"position": 2
}
,
{
"id": "41579",
"name": "Rail 9.9 X0 AXS T-Type Gen 4",
"price": "11299.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "orange",
"list": "PRODUCTSEARCH",
"position": 3
}
,
{
"id": "41662",
"name": "Rail 9.8 GX AXS T-Type Gen 4",
"price": "8509.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "orange",
"list": "PRODUCTSEARCH",
"position": 4
}
,
{
"id": "36992",
"name": "Rail 9 Gen 3",
"price": "7689.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "black",
"list": "PRODUCTSEARCH",
"position": 5
}
,
{
"id": "37008",
"name": "Powerfly FS 9 Equipped Gen 3",
"price": "6149.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "greydark_black",
"list": "PRODUCTSEARCH",
"position": 6
}
,
{
"id": "35271",
"name": "Powerfly FS 9 Equipped Gen 2",
"price": "5999.2",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "black",
"list": "PRODUCTSEARCH",
"position": 7
}
,
{
"id": "35356",
"name": "Rail 9 GX Gen 2",
"price": "5699.25",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "greendark_black",
"list": "PRODUCTSEARCH",
"position": 8
}
,
{
"id": "36991",
"name": "Rail 7 Gen 3",
"price": "4899.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "purpledark",
"list": "PRODUCTSEARCH",
"position": 9
}
,
{
"id": "36932",
"name": "Allant+ 7 Lowstep",
"price": "4099.0",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "red",
"list": "PRODUCTSEARCH",
"position": 10
}
,
{
"id": "40673",
"name": "Powerfly FS 4 Gen 3",
"price": "4099.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "teal_greendark",
"list": "PRODUCTSEARCH",
"position": 11
}
,
{
"id": "36933",
"name": "Allant+ 7 Stagger",
"price": "3299.0",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "greydark",
"list": "PRODUCTSEARCH",
"position": 12
}
,
{
"id": "36931",
"name": "Allant+ 7",
"price": "3299.0",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "blue",
"list": "PRODUCTSEARCH",
"position": 13
}
,
{
"id": "37302",
"name": "Kit telaio Domane SL Gen 4",
"price": "3279.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "blue",
"list": "PRODUCTSEARCH",
"position": 14
}
,
{
"id": "37015",
"name": "Rail 9.7 Gen 4",
"price": "5549.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "reddark",
"list": "PRODUCTSEARCH",
"position": 15
}
,
{
"id": "41679",
"name": "Rail 9.5 Gen 4",
"price": "4949.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "greendark",
"list": "PRODUCTSEARCH",
"position": 16
}
]
}
});
} else {
console.log("dataLayer");
}