if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CHF",
"impressions": [
{
"id": "47096",
"name": "Slash+ 9.9 X0 AXS T-Type",
"price": "11999.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "47091",
"name": "Slash+ 9.7 SLX/XT",
"price": "7999.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "greendark",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}