Présentation
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CAD",
"impressions": [
{
"id": "47530",
"name": "Checkpoint ALR 3",
"price": "1799.99",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "red",
"list": "More Options",
"position": 1
}
,
{
"id": "41640",
"name": "Checkpoint ALR 5",
"price": "3099.99",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "red",
"list": "More Options",
"position": 2
}
,
{
"id": "41513",
"name": "Checkpoint ALR 4",
"price": "2399.99",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "purplelight",
"list": "More Options",
"position": 3
}
,
{
"id": "35668",
"name": "Kit cadre Checkpoint ALR",
"price": "1599.99",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "reddark",
"list": "More Options",
"position": 4
}
,
{
"id": "42277",
"name": "Checkpoint ALR 5 AXS",
"price": "3599.99",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "greendark",
"list": "More Options",
"position": 5
}
,
{
"id": "35172",
"name": "Checkpoint ALR 5",
"price": "2099.93",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "white_black",
"list": "More Options",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}