Présentation
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CHF",
"impressions": [
{
"id": "48616",
"name": "Powerfly FS+ 4 Equipped 4e gén.",
"price": "4799.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "orange_greendark",
"list": "More Options",
"position": 1
}
,
{
"id": "48620",
"name": "Powerfly+ 4 Equipped 5e gén.",
"price": "3599.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "red_black",
"list": "More Options",
"position": 2
}
,
{
"id": "40672",
"name": "Powerfly FS 4 Equipped Gen 3",
"price": "5699.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "teal_greendark",
"list": "More Options",
"position": 3
}
,
{
"id": "35271",
"name": "Powerfly FS 9 Equipped 2e gén.",
"price": "6319.2",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "37008",
"name": "Powerfly FS 9 Equipped Gen 3",
"price": "6199.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "greydark_black",
"list": "More Options",
"position": 5
}
,
{
"id": "37046",
"name": "Powerfly Sport 7 Equipped Gen 4",
"price": "5199.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "black",
"list": "More Options",
"position": 6
}
,
{
"id": "37007",
"name": "Powerfly FS 4 Equipped Gen 3",
"price": "5199.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "black",
"list": "More Options",
"position": 7
}
,
{
"id": "37047",
"name": "Powerfly Sport 4 Equipped Gen 4",
"price": "3849.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "black_red",
"list": "More Options",
"position": 8
}
]
}
});
} else {
console.log("dataLayer");
}