Présentation
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CHF",
"impressions": [
{
"id": "36287",
"name": "Casquette de routier à écussion Trek",
"price": "35.0",
"brand": "Trek",
"category": "Casual caps & hats",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "40642",
"name": "Trek Bicycle Co 5 Panel Hat",
"price": "28.0",
"brand": "Trek",
"category": "Casual caps & hats",
"variant": "orange",
"list": "More Options",
"position": 2
}
,
{
"id": "34748",
"name": "Bonnet Trek Red Patch",
"price": "28.0",
"brand": "Trek",
"category": "Cycling caps & headwear",
"variant": "greydark",
"list": "More Options",
"position": 3
}
,
{
"id": "37339",
"name": "Bonnet Trek Circle",
"price": "25.0",
"brand": "Trek",
"category": "Casual caps & hats",
"variant": "grey",
"list": "More Options",
"position": 4
}
,
{
"id": "35308",
"name": "Casquette Podium Santini Trek-Segafredo",
"price": "35.0",
"brand": "Santini",
"category": "Casual caps & hats",
"variant": "bluedark_white",
"list": "More Options",
"position": 5
}
,
{
"id": "45022",
"name": "Bonnet à pompon Trek Factory Racing 100%",
"price": "35.0",
"brand": "100%",
"category": "Casual caps & hats",
"variant": "black",
"list": "More Options",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}