Présentation
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CHF",
"impressions": [
{
"id": "41506",
"name": "District+ 2 Lowstep",
"price": "2999.0",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "tealdark",
"list": "More Options",
"position": 1
}
,
{
"id": "41644",
"name": "District+ 1C Lowstep",
"price": "2799.0",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "tan",
"list": "More Options",
"position": 2
}
,
{
"id": "41606",
"name": "District+ 1 Lowstep",
"price": "2699.0",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "tan",
"list": "More Options",
"position": 3
}
,
{
"id": "41605",
"name": "District+ 1",
"price": "2699.0",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "bluedark",
"list": "More Options",
"position": 4
}
,
{
"id": "46126",
"name": "District+ 2 Belt Lowstep",
"price": "3299.0",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "black",
"list": "More Options",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}