Présentation
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "36967",
"name": "Marlin 7 Gen 3",
"price": "799.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "bluelight",
"list": "More Options",
"position": 1
}
,
{
"id": "41217",
"name": "Marlin 7 Gen 3",
"price": "1039.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "orange",
"list": "More Options",
"position": 2
}
,
{
"id": "40773",
"name": "Marlin 5 Gen 3",
"price": "589.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "purple_black",
"list": "More Options",
"position": 3
}
,
{
"id": "41613",
"name": "Marlin 4 2e gén.",
"price": "499.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "red",
"list": "More Options",
"position": 4
}
,
{
"id": "34587",
"name": "Marlin 5 2e gén.",
"price": "589.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "red",
"list": "More Options",
"position": 5
}
,
{
"id": "37982",
"name": "Kit cadre Marlin Gen 3",
"price": "579.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "black",
"list": "More Options",
"position": 6
}
,
{
"id": "35866",
"name": "Kit cadre Marlin Gen 2",
"price": "344.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "bluedark_blue",
"list": "More Options",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}