Présentation
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CHF",
"impressions": [
{
"id": "12711",
"name": "Plaque de réservoir Electra Delivery 3i",
"price": "35.0",
"brand": "Electra",
"category": "Bike frame parts",
"variant": "tan",
"list": "More Options",
"position": 1
}
,
{
"id": "22778",
"name": "Panneaux publicitaires pour vélos Electra Cruiser Lux",
"price": "27.5",
"brand": "Electra",
"category": "Bike frame parts",
"variant": "white_black",
"list": "More Options",
"position": 2
}
,
{
"id": "34817",
"name": "Badge pour tube de direction Electra",
"price": "17.5",
"brand": "Electra",
"category": "Bike frame parts",
"variant": "greylight",
"list": "More Options",
"position": 3
}
,
{
"id": "44283",
"name": "Electra Loft Go! Seat Tube Badge",
"price": "8.0",
"brand": "Electra",
"category": "Bike frame parts",
"variant": "greylight",
"list": "More Options",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}