if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CHF",
"impressions": [
{
"id": "37596",
"name": "Cintre Electra 16" enfant",
"price": "35.0",
"brand": "Electra",
"category": "Bike handlebars",
"variant": "greylight",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "37595",
"name": "Cintre Electra 20" enfant",
"price": "30.0",
"brand": "Electra",
"category": "Bike handlebars",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "35980",
"name": "Lee Chi 25.4 Kids' Handlebar",
"price": "17.5",
"brand": "Lee Chi",
"category": "Bike handlebars",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}