Présentation
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CAD",
"impressions": [
{
"id": "36792",
"name": "Rail 7 Gen 3",
"price": "5799.93",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "purpledark",
"list": "More Options",
"position": 1
}
,
{
"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": 2
}
,
{
"id": "41666",
"name": "Rail 9.8 GX AXS T-Type Gen 4",
"price": "10999.97",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "orange",
"list": "More Options",
"position": 3
}
,
{
"id": "37028",
"name": "Rail 9.8 XT Gen 4",
"price": "10299.97",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "red",
"list": "More Options",
"position": 4
}
,
{
"id": "37026",
"name": "Rail 9.7 Gen 4",
"price": "6499.93",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "reddark",
"list": "More Options",
"position": 5
}
,
{
"id": "36791",
"name": "Rail 5 3e gén.",
"price": "5299.97",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "reddark",
"list": "More Options",
"position": 6
}
,
{
"id": "35036",
"name": "Rail 7 2e gén.",
"price": "5299.93",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "bluedark_black",
"list": "More Options",
"position": 7
}
,
{
"id": "35032",
"name": "Rail 5 2e gén.",
"price": "3999.93",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "black_teal",
"list": "More Options",
"position": 8
}
,
{
"id": "35678",
"name": "Rail 9.9 XX1 AXS 3e gén.",
"price": "9499.93",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "black_yellow",
"list": "More Options",
"position": 9
}
,
{
"id": "37029",
"name": "Rail 9.8 GX AXS Gen 4",
"price": "9299.93",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "red",
"list": "More Options",
"position": 10
}
,
{
"id": "35676",
"name": "Rail 9.9 XTR 3e gén.",
"price": "8499.93",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "black_yellow",
"list": "More Options",
"position": 11
}
,
{
"id": "35680",
"name": "Rail 9.8 GX AXS 3e gén.",
"price": "7399.93",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "grey_black",
"list": "More Options",
"position": 12
}
,
{
"id": "35672",
"name": "Rail 9.8 XT 3e gén.",
"price": "5999.93",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "black_yellow",
"list": "More Options",
"position": 13
}
,
{
"id": "35682",
"name": "Rail 9.8 GX 3e gén.",
"price": "5999.93",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "black_yellow",
"list": "More Options",
"position": 14
}
]
}
});
} else {
console.log("dataLayer");
}