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