if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CHF",
"impressions": [
{
"id": "33536",
"name": "Dual Sport 3 Equipped Stagger",
"price": "1079.0",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "bluedark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "36995",
"name": "Dual Sport 2 Equipped 5ème génération",
"price": "1039.0",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "40511",
"name": "Dual Sport 2 Mid-step 5e gén.",
"price": "949.0",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "greydark",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "40508",
"name": "Dual Sport 2 Equipped 5e gén.",
"price": "949.0",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "red",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "40503",
"name": "Dual Sport 3 Equipped Mid-step 5e gén.",
"price": "1199.0",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "40502",
"name": "Dual Sport 3 Equipped de 5ème génération",
"price": "1199.0",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}