if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CHF",
"impressions": [
{
"id": "22158",
"name": "Bontrager Race Lite Ergo Bar Ends IsoZone Bar Adapters",
"price": "13.0",
"brand": "Bontrager",
"category": "Bike handlebars",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "10311",
"name": "Bontrager IsoZone-Lenkerstopfen",
"price": "4.0",
"brand": "Bontrager",
"category": "Bike handlebars",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "35187",
"name": "Diamant 136 Bar Ends",
"price": "50.0",
"brand": "Diamant",
"category": "Bike handlebars",
"variant": "purple",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}