Présentation
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CHF",
"impressions": [
{
"id": "35117",
"name": "Roscoe 8",
"price": "1649.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greendark",
"list": "More Options",
"position": 1
}
,
{
"id": "35870",
"name": "Kit cadre Roscoe",
"price": "969.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "35118",
"name": "Roscoe 9",
"price": "1999.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "red",
"list": "More Options",
"position": 3
}
,
{
"id": "28487",
"name": "Roscoe 8",
"price": "1999.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "bluedark_grey",
"list": "More Options",
"position": 4
}
,
{
"id": "28499",
"name": "Roscoe 7",
"price": "1449.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "black",
"list": "More Options",
"position": 5
}
,
{
"id": "33192",
"name": "Roscoe 6",
"price": "999.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "grey_reddark",
"list": "More Options",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}