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": "48016",
"name": "FX+ 7",
"price": "4559.0",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "black",
"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");
}