Présentation
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CHF",
"impressions": [
{
"id": "21588",
"name": "Selle Bontrager Commuter Comp",
"price": "45.0",
"brand": "Bontrager",
"category": "Bike saddles",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "14011",
"name": "Selle Bontrager Sport",
"price": "39.0",
"brand": "Bontrager",
"category": "Bike saddles",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "14012",
"name": "Selle Bontrager Sport pour femmes",
"price": "39.0",
"brand": "Bontrager",
"category": "Bike saddles",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "22644",
"name": "Selle Textile rétro Trek",
"price": "40.0",
"brand": "Trek",
"category": "Bike saddles",
"variant": "brown",
"list": "More Options",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}