Présentation
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "47331",
"name": "Casquette à 6 pans Rapha Trail",
"price": "32.0",
"brand": "Rapha",
"category": "Cycling caps & headwear",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "41981",
"name": "Trek Sunset Script Beanie",
"price": "17.99",
"brand": "Trek",
"category": "Casual caps & hats",
"variant": "bluedark",
"list": "More Options",
"position": 2
}
,
{
"id": "45021",
"name": "Casquette à 5 pans Trek Factory Racing 100%",
"price": "34.99",
"brand": "100%",
"category": "Casual caps & hats",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "45022",
"name": "Bonnet à pompon Trek Factory Racing 100%",
"price": "29.99",
"brand": "100%",
"category": "Casual caps & hats",
"variant": "black",
"list": "More Options",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}