if (typeof dataLayer !== "undefined") { dataLayer.push({ "ecommerce": { "currency": "EUR", "impressions": [ { "id": "25835", "name": "Boulon de serrage en titane Trek BarStem", "price": "9.99", "brand": "Trek", "category": "Bike handlebars", "variant": "grey", "list": "CATEGORY", "position": 1 } , { "id": "14910", "name": "Trek Madone Handlebar/Stem Pinchbolt Insert Nut", "price": "6.99", "brand": "Trek", "category": "Bike handlebars", "variant": "black", "list": "CATEGORY", "position": 2 } , { "id": "32593", "name": "Boulon de fixation Trek Blendr pour BarStem", "price": "2.99", "brand": "Trek", "category": "Bike handlebars", "variant": "black", "list": "CATEGORY", "position": 3 } , { "id": "47384", "name": "Fixation Blendr Aero RSL Pro pour cintre/potence de Trek", "price": "29.99", "brand": "Bontrager", "category": "Bike computers & GPS", "variant": "black", "list": "CATEGORY", "position": 4 } , { "id": "41067", "name": "Hyena Bluetooth HMI Clamp", "price": "13.99", "brand": "Hyena", "category": "Bike handlebars", "variant": "black", "list": "CATEGORY", "position": 5 } ] } }); } else { console.log("dataLayer"); }