Présentation
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "41481",
"name": "Domane+ SLR 7 AXS",
"price": "8649.0",
"brand": "Trek",
"category": "Electric road bikes",
"variant": "greendark",
"list": "More Options",
"position": 1
}
,
{
"id": "36707",
"name": "Domane+ SLR 7",
"price": "8169.0",
"brand": "Trek",
"category": "Electric road bikes",
"variant": "white_gold",
"list": "More Options",
"position": 2
}
,
{
"id": "36741",
"name": "Domane+ SLR 9",
"price": "11339.0",
"brand": "Trek",
"category": "Electric road bikes",
"variant": "white_gold",
"list": "More Options",
"position": 3
}
,
{
"id": "36700",
"name": "Domane+ SLR 6 AXS",
"price": "8179.0",
"brand": "Trek",
"category": "Electric road bikes",
"variant": "greendark",
"list": "More Options",
"position": 4
}
,
{
"id": "36703",
"name": "Domane+ SLR 6 Pro",
"price": "7709.0",
"brand": "Trek",
"category": "Electric road bikes",
"variant": "black_grey",
"list": "More Options",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}