if (typeof dataLayer !== "undefined") { dataLayer.push({ "ecommerce": { "currency": "USD", "impressions": [ { "id": "33796", "name": "Electra All Weather Woven MIK Basket", "price": "109.99", "brand": "Electra", "category": "Bike baskets", "variant": "grey", "list": "CATEGORY", "position": 1 } , { "id": "33707", "name": "Electra All-Weather Woven Front QR Basket", "price": "94.99", "brand": "Electra", "category": "Bike baskets", "variant": "grey", "list": "CATEGORY", "position": 2 } , { "id": "40324", "name": "Electra Fern Pannier Bag", "price": "69.93", "brand": "Electra", "category": "Bike bags", "variant": "black_grey", "list": "CATEGORY", "position": 3 } , { "id": "33699", "name": "Electra Go! Mips Bike Helmet", "price": "59.93", "brand": "Electra", "category": "Bike helmets", "variant": "yellowvisibility", "list": "CATEGORY", "position": 4 } , { "id": "40322", "name": "Electra Fern Rear Rack Trunk Bag", "price": "59.93", "brand": "Electra", "category": "Bike bags", "variant": "greendark", "list": "CATEGORY", "position": 5 } , { "id": "33708", "name": "Electra All-Weather Woven Pannier Basket", "price": "39.93", "brand": "Electra", "category": "Bike baskets", "variant": "grey", "list": "CATEGORY", "position": 6 } , { "id": "40277", "name": "Electra Classic Faux Leather Tool Bag", "price": "39.93", "brand": "Electra", "category": "Bike bags", "variant": "black", "list": "CATEGORY", "position": 7 } , { "id": "40275", "name": "Electra Classic Faux Leather Bike Saddle", "price": "29.93", "brand": "Electra", "category": "Bike saddles", "variant": "black", "list": "CATEGORY", "position": 8 } , { "id": "40646", "name": "Electra Triangle Frame Bag", "price": "29.93", "brand": "Electra", "category": "Bike bags", "variant": "black", "list": "CATEGORY", "position": 9 } , { "id": "35952", "name": "Electra Pinger Bike Bell", "price": "19.99", "brand": "Electra", "category": "Bike bells & horns", "variant": "greydark", "list": "CATEGORY", "position": 10 } , { "id": "40317", "name": "Electra Fern Phone Bag", "price": "19.93", "brand": "Electra", "category": "Bike bags", "variant": "greendark", "list": "CATEGORY", "position": 11 } , { "id": "40184", "name": "Electra Fern Ding Dong Bike Bell", "price": "15.99", "brand": "Electra", "category": "Bike bells & horns", "variant": "greendark", "list": "CATEGORY", "position": 12 } , { "id": "40316", "name": "Electra Fern Saddle Bag", "price": "15.93", "brand": "Electra", "category": "Bike bags", "variant": "greendark", "list": "CATEGORY", "position": 13 } , { "id": "13534", "name": "Electra Linear Cup Holder", "price": "13.93", "brand": "Electra", "category": "Bike water bottles & cages", "variant": "white", "list": "CATEGORY", "position": 14 } , { "id": "40278", "name": "Electra Classic Faux Leather Bike Carry Handle", "price": "9.93", "brand": "Electra", "category": "Bike storage", "variant": "black", "list": "CATEGORY", "position": 15 } ] } }); } else { console.log("dataLayer"); }