if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CHF",
"impressions": [
{
"id": "37569",
"name": "Electra Townie 135 x 12mm Derailleur Hanger",
"price": "11.0",
"brand": "Electra",
"category": "Bike hangers & dropouts",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "26060",
"name": "VP Components FP-B701 Old-Style Nut-Type Bottom Bracket",
"price": "9.0",
"brand": "VP Components",
"category": "Bike bottom brackets",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "46122",
"name": "Prowheel Chainring Bolt Kit",
"price": "6.0",
"brand": "Trek-Diamant",
"category": "Bike cranks & chainrings",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}