if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CHF",
"impressions": [
{
"id": "41023",
"name": "Allant+ 6",
"price": "3699.0",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "41025",
"name": "Allant+ 6 Mid-step",
"price": "3699.0",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "41024",
"name": "Allant+ 6 Lowstep",
"price": "3699.0",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "greendark",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "40482",
"name": "Allant+ 5",
"price": "3199.0",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "red",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "40484",
"name": "Allant+ 5 Mid-step",
"price": "3199.0",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "40483",
"name": "Allant+ 5 Lowstep",
"price": "3199.0",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "black",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "36911",
"name": "Allant+ 5 Lowstep",
"price": "3399.0",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "green",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "36913",
"name": "Allant+ 5 Stagger",
"price": "3399.0",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "black",
"list": "CATEGORY",
"position": 8
}
,
{
"id": "36916",
"name": "Allant+ 6",
"price": "3099.0",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 9
}
,
{
"id": "36923",
"name": "Allant+ 6 Stagger",
"price": "3099.0",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 10
}
,
{
"id": "36970",
"name": "Allant+ 5",
"price": "2799.0",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "red",
"list": "CATEGORY",
"position": 11
}
]
}
});
} else {
console.log("dataLayer");
}