if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CHF",
"impressions": [
{
"id": "41209",
"name": "Trek-Diamant Allant+/Zouma Motor Mount Plug",
"price": "4.0",
"brand": "Trek-Diamant",
"category": "E-bike accessories",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "31528",
"name": "Trek Allant+ & Diamant Zouma+ Skidplate Motorschutz",
"price": "3.0",
"brand": "Trek-Diamant",
"category": "Bike frame protection",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}