Présentation
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CHF",
"impressions": [
{
"id": "41395",
"name": "Domane AL 5 Gen 4",
"price": "2299.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "41587",
"name": "Domane AL 2 4e gén.",
"price": "1199.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "greydark",
"list": "More Options",
"position": 2
}
,
{
"id": "33086",
"name": "Domane AL 5 Gen 3",
"price": "2199.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "orange_grey",
"list": "More Options",
"position": 3
}
,
{
"id": "33083",
"name": "Domane AL 2 Gen 3",
"price": "1079.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "purple_black",
"list": "More Options",
"position": 4
}
,
{
"id": "33037",
"name": "Domane AL 2 Rim",
"price": "899.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "blue_black",
"list": "More Options",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}