if (typeof dataLayer !== "undefined") { dataLayer.push({ "ecommerce": { "currency": "EUR", "impressions": [ { "id": "12723", "name": "Utensile per postazione integrato Electra Cruiser", "price": "39.99", "brand": "Electra", "category": "Bike tools & maintenance", "variant": "black", "list": "CATEGORY", "position": 1 } , { "id": "77293", "name": "Electra Touch-Up Paint - Matte Color Collection", "price": "19.99", "brand": "Electra", "category": "Touch-up paint", "variant": "", "list": "CATEGORY", "position": 2 } , { "id": "77292", "name": "Electra Touch-Up Paint - Gloss Colors Collection", "price": "19.99", "brand": "Electra", "category": "Touch-up paint", "variant": "", "list": "CATEGORY", "position": 3 } , { "id": "41760", "name": "Electra Loft 7D/7i Double Cable Guide", "price": "4.99", "brand": "Electra", "category": "Bike tools & maintenance", "variant": "black", "list": "CATEGORY", "position": 4 } , { "id": "41771", "name": "Electra Loft Go! 7D Internal Cable Guide", "price": "3.99", "brand": "Electra", "category": "Bike tools & maintenance", "variant": "black", "list": "CATEGORY", "position": 5 } , { "id": "42283", "name": "Electra Cable Routing Grommet", "price": "3.99", "brand": "Electra", "category": "Bike tools & maintenance", "variant": "black", "list": "CATEGORY", "position": 6 } ] } }); } else { console.log("dataLayer"); }