if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CHF",
"impressions": [
{
"id": "36823",
"name": "Dual Sport 2 5ème génération",
"price": "749.0",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "green",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "35018",
"name": "FX 2 Disc Equipped",
"price": "749.0",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "red",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "33183",
"name": "Ubari Deluxe (Cadre: bas)",
"price": "749.0",
"brand": "Diamant",
"category": "Diamant Trekking®",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "35139",
"name": "FX 2 Disque Equipped Stagger",
"price": "749.0",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "red",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "33182",
"name": "Ubari Deluxe (Cadre: haut)",
"price": "749.0",
"brand": "Diamant",
"category": "Diamant Trekking®",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "36967",
"name": "Marlin 7 Gen 3",
"price": "749.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "bluelight",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "33124",
"name": "Achat (Cadre: bas)",
"price": "699.0",
"brand": "Diamant",
"category": "Diamant City",
"variant": "purple",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "36824",
"name": "Dual Sport 1 5ème génération",
"price": "699.0",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "red",
"list": "CATEGORY",
"position": 8
}
,
{
"id": "35004",
"name": "FX 2 Stagger disque 3e gén.",
"price": "599.0",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "red",
"list": "CATEGORY",
"position": 9
}
,
{
"id": "35002",
"name": "FX 1 Stagger disque 3e gén.",
"price": "499.0",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 10
}
,
{
"id": "29759",
"name": "Marlin 4 2e gén.",
"price": "499.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 11
}
,
{
"id": "35001",
"name": "FX 1 disque 3e gén.",
"price": "499.0",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "black",
"list": "CATEGORY",
"position": 12
}
,
{
"id": "17476",
"name": "Kickster",
"price": "220.5",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "pink",
"list": "CATEGORY",
"position": 13
}
]
}
});
} else {
console.log("dataLayer");
}