if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CHF",
"impressions": [
{
"id": "37018",
"name": "Farley 5",
"price": "1999.0",
"brand": "Trek",
"category": "Fat bikes",
"variant": "tealdark_greydark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "37020",
"name": "Farley 9.6",
"price": "3499.0",
"brand": "Trek",
"category": "Fat bikes",
"variant": "red",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "40735",
"name": "Rahmenset Farley AL",
"price": "1749.0",
"brand": "Trek",
"category": "Fat bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "24999",
"name": "Rahmenset Farley EX",
"price": "3699.0",
"brand": "Trek",
"category": "Fat bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "33744",
"name": "Rahmenset Farley AL",
"price": "1499.0",
"brand": "Trek",
"category": "Fat bikes",
"variant": "bluedark_tealdark",
"list": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}