Présentation
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "40490",
"name": "FX+ 2 LT",
"price": "2359.0",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "red",
"list": "More Options",
"position": 1
}
,
{
"id": "40491",
"name": "FX+ 2 Mid-step LT",
"price": "2359.0",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "blue",
"list": "More Options",
"position": 2
}
,
{
"id": "48017",
"name": "FX+ 7 Mid-step",
"price": "4559.0",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "blue",
"list": "More Options",
"position": 3
}
,
{
"id": "35840",
"name": "FX+ 2",
"price": "1899.0",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "red",
"list": "More Options",
"position": 4
}
,
{
"id": "35841",
"name": "FX+ 2 Stagger",
"price": "1899.0",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "blue",
"list": "More Options",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}