if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CHF",
"impressions": [
{
"id": "47319",
"name": "Supercaliber SLR 9.9 XX AXS 2e gén.",
"price": "11499.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "bluedark_grey",
"list": "PRODUCTSEARCH",
"position": 1
}
,
{
"id": "48452",
"name": "Rail+ 9.8 XT 5e gén.",
"price": "8499.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "orange",
"list": "PRODUCTSEARCH",
"position": 2
}
,
{
"id": "48465",
"name": "Rail+ 9.8 GX AXS T-Type 5e gén.",
"price": "8499.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "orange",
"list": "PRODUCTSEARCH",
"position": 3
}
,
{
"id": "47303",
"name": "Supercaliber SLR 9.8 X0 AXS T-Type 2e gén.",
"price": "7499.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "black_grey",
"list": "PRODUCTSEARCH",
"position": 4
}
,
{
"id": "48463",
"name": "Rail+ 9.7 5e gén.",
"price": "6999.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "bluedark",
"list": "PRODUCTSEARCH",
"position": 5
}
,
{
"id": "48458",
"name": "Rail+ 5 5e gén.",
"price": "5499.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "red",
"list": "PRODUCTSEARCH",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}