Présentation
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CHF",
"impressions": [
{
"id": "48622",
"name": "Powerfly+ 8 5e gén.",
"price": "4999.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "grey_bronze",
"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": "48619",
"name": "Powerfly+ 4 5e gén.",
"price": "3299.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "grey_greenvisibility",
"list": "More Options",
"position": 3
}
,
{
"id": "37044",
"name": "Powerfly 5 Gen 4",
"price": "4499.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "teal_greendark",
"list": "More Options",
"position": 4
}
,
{
"id": "41036",
"name": "Powerfly 4 625 Wh 4e gén.",
"price": "4149.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "greenlight_greydark",
"list": "More Options",
"position": 5
}
,
{
"id": "37045",
"name": "Powerfly 7 Gen 4",
"price": "3999.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "tan_black",
"list": "More Options",
"position": 6
}
,
{
"id": "35403",
"name": "Powerfly 7 3e gén.",
"price": "4679.1",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "orange_greydark",
"list": "More Options",
"position": 7
}
,
{
"id": "35402",
"name": "Powerfly 5 3e gén.",
"price": "4399.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "black_greydark",
"list": "More Options",
"position": 8
}
,
{
"id": "32817",
"name": "Powerfly 4 3e gén.",
"price": "3799.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "greydark_teal",
"list": "More Options",
"position": 9
}
,
{
"id": "37042",
"name": "Powerfly 4 625 Wh 4e gén.",
"price": "3149.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "pinklight_greydark",
"list": "More Options",
"position": 10
}
]
}
});
} else {
console.log("dataLayer");
}