if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CHF",
"impressions": [
{
"id": "28899",
"name": "FX 3 Equipped Stagger",
"price": "1099.0",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "28898",
"name": "FX 3 Equipped",
"price": "1099.0",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "33536",
"name": "Dual Sport 3 Equipped Stagger",
"price": "1079.0",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "bluedark",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}