Présentation
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CHF",
"impressions": [
{
"id": "36951",
"name": "Casque de cycliste Trek Starvos WaveCel",
"price": "139.0",
"brand": "Trek",
"category": "Bike helmets",
"variant": "yellowvisibility",
"list": "More Options",
"position": 1
}
,
{
"id": "40379",
"name": "Casque de vélo Trek Little Dipper",
"price": "49.0",
"brand": "Trek",
"category": "Bike helmets",
"variant": "pink",
"list": "More Options",
"position": 2
}
,
{
"id": "31568",
"name": "Casque cycliste Bontrager Starvos WaveCel",
"price": "97.0",
"brand": "Bontrager",
"category": "Bike helmets",
"variant": "yellowvisibility",
"list": "More Options",
"position": 3
}
,
{
"id": "31556",
"name": "Casque Enfants Bontrager Jet WaveCel",
"price": "89.0",
"brand": "Bontrager",
"category": "Bike helmets",
"variant": "white_bluelight",
"list": "More Options",
"position": 4
}
,
{
"id": "31559",
"name": "Casque Ados Bontrager Jet WaveCel",
"price": "89.0",
"brand": "Bontrager",
"category": "Bike helmets",
"variant": "white_bluelight",
"list": "More Options",
"position": 5
}
,
{
"id": "30486",
"name": "Casque pour enfants Bontrager Tyro",
"price": "44.0",
"brand": "Bontrager",
"category": "Bike helmets",
"variant": "blue",
"list": "More Options",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}