Présentation
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CAD",
"impressions": [
{
"id": "40819",
"name": "FX 3 4e gén.",
"price": "1229.99",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "blue",
"list": "More Options",
"position": 1
}
,
{
"id": "35787",
"name": "FX Sport 6",
"price": "3499.99",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "35786",
"name": "FX Sport 5",
"price": "2629.99",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "reddark",
"list": "More Options",
"position": 3
}
,
{
"id": "40822",
"name": "FX Sport 4",
"price": "2249.99",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "greendark",
"list": "More Options",
"position": 4
}
,
{
"id": "35003",
"name": "FX 2 disque 3e gén.",
"price": "899.99",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "red",
"list": "More Options",
"position": 5
}
,
{
"id": "32770",
"name": "FX 1 Stagger 3e gén.",
"price": "569.99",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "grey",
"list": "More Options",
"position": 6
}
,
{
"id": "35785",
"name": "FX Sport 4",
"price": "1799.93",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "greendark",
"list": "More Options",
"position": 7
}
,
{
"id": "35021",
"name": "FX 3 disque 3e gén.",
"price": "1049.93",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "black",
"list": "More Options",
"position": 8
}
,
{
"id": "35004",
"name": "FX 2 Stagger disque 3e gén.",
"price": "899.99",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "red",
"list": "More Options",
"position": 9
}
,
{
"id": "35001",
"name": "FX 1 disque 3e gén.",
"price": "769.99",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "black",
"list": "More Options",
"position": 10
}
,
{
"id": "35002",
"name": "FX 1 Stagger disque 3e gén.",
"price": "769.99",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "grey",
"list": "More Options",
"position": 11
}
]
}
});
} else {
console.log("dataLayer");
}