Présentation
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CAD",
"impressions": [
{
"id": "41354",
"name": "Émonda SL 7",
"price": "7499.97",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "grey",
"list": "More Options",
"position": 1
}
,
{
"id": "32688",
"name": "Kit cadre Émonda SL Disc",
"price": "2799.99",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "black_red",
"list": "More Options",
"position": 2
}
,
{
"id": "35029",
"name": "Émonda SL 6 AXS",
"price": "5399.93",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "grey_black",
"list": "More Options",
"position": 3
}
,
{
"id": "36977",
"name": "Émonda SL 6 Pro Di2",
"price": "4799.93",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "36974",
"name": "Émonda SL 5",
"price": "3149.93",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "greydark",
"list": "More Options",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}