if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CHF",
"impressions": [
{
"id": "35920",
"name": "Rahmenset 1120",
"price": "1249.0",
"brand": "Trek",
"category": "1120",
"variant": "bluedark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "22005",
"name": "1120",
"price": "3299.0",
"brand": "Trek",
"category": "1120",
"variant": "grey",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "26914",
"name": "1120 Rahmenset",
"price": "1089.0",
"brand": "Trek",
"category": "1120",
"variant": "greydark",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}