Présentation
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CAD",
"impressions": [
{
"id": "40455",
"name": "Trek Fetch+ 4 Head Badge",
"price": "51.99",
"brand": "Trek",
"category": "Bike frame parts",
"variant": "grey_black",
"list": "More Options",
"position": 1
}
,
{
"id": "32096",
"name": "Trek Top Fuel 29 2020 Logo autocollant pour base arrière",
"price": "25.99",
"brand": "Trek",
"category": "Bike frame parts",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "14807",
"name": "Badges pour tubes de direction Trek",
"price": "13.99",
"brand": "Trek",
"category": "Bike frame parts",
"variant": "greylight",
"list": "More Options",
"position": 3
}
,
{
"id": "12711",
"name": "Plaque de réservoir Electra Delivery 3i",
"price": "55.99",
"brand": "Electra",
"category": "Bike frame parts",
"variant": "tan",
"list": "More Options",
"position": 4
}
,
{
"id": "22778",
"name": "Panneaux publicitaires pour vélos Electra Cruiser Lux",
"price": "43.99",
"brand": "Electra",
"category": "Bike frame parts",
"variant": "white_black",
"list": "More Options",
"position": 5
}
,
{
"id": "45285",
"name": "Electra Ponto Go! Headbadge",
"price": "12.99",
"brand": "Electra",
"category": "Bike frame parts",
"variant": "black",
"list": "More Options",
"position": 6
}
,
{
"id": "44283",
"name": "Electra Loft Go! Seat Tube Badge",
"price": "9.99",
"brand": "Electra",
"category": "Bike frame parts",
"variant": "greylight",
"list": "More Options",
"position": 7
}
,
{
"id": "12591",
"name": "Badge pour garde-chaîne Electra",
"price": "8.5",
"brand": "Electra",
"category": "Bike frame parts",
"variant": "greylight",
"list": "More Options",
"position": 8
}
]
}
});
} else {
console.log("dataLayer");
}