if (typeof dataLayer !== "undefined") { dataLayer.push({ "ecommerce": { "currency": "USD", "impressions": [ { "id": "12723", "name": "Electra Cruiser Integrated Kickstand Tool", "price": "41.99", "brand": "Electra", "category": "Bike tools & maintenance", "variant": "black", "list": "CATEGORY", "position": 1 } , { "id": "37815", "name": "Electra Touch-up Paint - Gloss Grey Color Collection", "price": "14.99", "brand": "Electra", "category": "Touch-up paint", "variant": "", "list": "CATEGORY", "position": 2 } , { "id": "37814", "name": "Electra Touch-up Paint - Gloss Green Color Collection", "price": "14.99", "brand": "Electra", "category": "Touch-up paint", "variant": "", "list": "CATEGORY", "position": 3 } , { "id": "37821", "name": "Electra Touch-up Paint - Gloss Teal Color Collection", "price": "14.99", "brand": "Electra", "category": "Touch-up paint", "variant": "", "list": "CATEGORY", "position": 4 } , { "id": "37832", "name": "Electra Touch-up Paint - Matte Purple Color Collection", "price": "14.99", "brand": "Electra", "category": "Touch-up paint", "variant": "", "list": "CATEGORY", "position": 5 } , { "id": "37811", "name": "Electra Touch-up Paint - Gloss Blue Color Collection", "price": "14.99", "brand": "Electra", "category": "Touch-up paint", "variant": "", "list": "CATEGORY", "position": 6 } , { "id": "37845", "name": "Trek Touch-up Paint - Gloss Pink Color Collection", "price": "14.99", "brand": "Trek-Diamant", "category": "Touch-up paint", "variant": "", "list": "CATEGORY", "position": 7 } , { "id": "37851", "name": "Trek Touch-up Paint - Gloss Yellow Color Collection", "price": "14.99", "brand": "Trek-Diamant", "category": "Touch-up paint", "variant": "", "list": "CATEGORY", "position": 8 } , { "id": "37823", "name": "Electra Touch-up Paint - Gloss Yellow Color Collection", "price": "14.99", "brand": "Electra", "category": "Touch-up paint", "variant": "", "list": "CATEGORY", "position": 9 } , { "id": "37820", "name": "Electra Touch-up Paint - Gloss Tan Color Collection", "price": "14.99", "brand": "Electra", "category": "Touch-up paint", "variant": "", "list": "CATEGORY", "position": 10 } , { "id": "37817", "name": "Electra Touch-up Paint - Gloss Pink Color Collection", "price": "14.99", "brand": "Electra", "category": "Touch-up paint", "variant": "", "list": "CATEGORY", "position": 11 } , { "id": "37825", "name": "Electra Touch-up Paint - Matte Blue Color Collection", "price": "14.99", "brand": "Electra", "category": "Touch-up paint", "variant": "", "list": "CATEGORY", "position": 12 } , { "id": "40711", "name": "Trek Touch-up Paint - Satin Orange Color Collection", "price": "14.99", "brand": "Electra", "category": "Touch-up paint", "variant": "", "list": "CATEGORY", "position": 13 } , { "id": "45165", "name": "Electra Touch-up Paint - Gloss Red Color Collection", "price": "14.99", "brand": "Electra", "category": "Touch-up paint", "variant": "", "list": "CATEGORY", "position": 14 } , { "id": "37812", "name": "Electra Touch-up Paint - Gloss Bronze Color Collection", "price": "14.99", "brand": "Electra", "category": "Touch-up paint", "variant": "", "list": "CATEGORY", "position": 15 } , { "id": "41771", "name": "Electra Loft Go! 7D Internal Cable Guide", "price": "6.99", "brand": "Electra", "category": "Bike tools & maintenance", "variant": "black", "list": "CATEGORY", "position": 16 } , { "id": "42283", "name": "Electra Cable Routing Grommet", "price": "2.99", "brand": "Electra", "category": "Bike tools & maintenance", "variant": "black", "list": "CATEGORY", "position": 17 } , { "id": "45458", "name": "Electra Ponto Go! Battery Cable Guide", "price": "2.99", "brand": "Electra", "category": "Bike tools & maintenance", "variant": "black", "list": "CATEGORY", "position": 18 } ] } }); } else { console.log("dataLayer"); }