Présentation
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CAD",
"impressions": [
{
"id": "41561",
"name": "Rail 8 GX AXS T-Type Gen 3",
"price": "8499.97",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "red",
"list": "More Options",
"position": 1
}
,
{
"id": "36792",
"name": "Rail 7 Gen 3",
"price": "6599.93",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "purpledark",
"list": "More Options",
"position": 2
}
,
{
"id": "41854",
"name": "Rail 9.9 CXR 4e gén.",
"price": "17499.99",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "red",
"list": "More Options",
"position": 3
}
,
{
"id": "41986",
"name": "Rail 9.9 X0 AXS T-Type Gen 4",
"price": "14799.99",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "orange",
"list": "More Options",
"position": 4
}
,
{
"id": "41666",
"name": "Rail 9.8 GX AXS T-Type Gen 4",
"price": "12799.97",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "orange",
"list": "More Options",
"position": 5
}
,
{
"id": "37028",
"name": "Rail 9.8 XT Gen 4",
"price": "11349.97",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "red",
"list": "More Options",
"position": 6
}
,
{
"id": "37026",
"name": "Rail 9.7 Gen 4",
"price": "7699.93",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "reddark",
"list": "More Options",
"position": 7
}
,
{
"id": "35036",
"name": "Rail 7 2e gén.",
"price": "6299.99",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "bluedark_black",
"list": "More Options",
"position": 8
}
,
{
"id": "36791",
"name": "Rail 5 3e gén.",
"price": "5999.97",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "reddark",
"list": "More Options",
"position": 9
}
,
{
"id": "35032",
"name": "Rail 5 2e gén.",
"price": "4999.93",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "black_teal",
"list": "More Options",
"position": 10
}
,
{
"id": "37029",
"name": "Rail 9.8 GX AXS Gen 4",
"price": "10999.93",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "red",
"list": "More Options",
"position": 11
}
,
{
"id": "35676",
"name": "Rail 9.9 XTR 3e gén.",
"price": "10499.93",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "black_yellow",
"list": "More Options",
"position": 12
}
,
{
"id": "35680",
"name": "Rail 9.8 GX AXS 3e gén.",
"price": "9999.99",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "grey_black",
"list": "More Options",
"position": 13
}
,
{
"id": "35672",
"name": "Rail 9.8 XT 3e gén.",
"price": "8299.93",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "black_yellow",
"list": "More Options",
"position": 14
}
,
{
"id": "35682",
"name": "Rail 9.8 GX 3e gén.",
"price": "8299.93",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "black_yellow",
"list": "More Options",
"position": 15
}
]
}
});
} else {
console.log("dataLayer");
}