if (typeof dataLayer !== "undefined") { dataLayer.push({ "ecommerce": { "currency": "", "impressions": [ { "id": "12711", "name": "Electra Delivery 3i Tank Plate", "price": "", "brand": "Electra", "category": "Bike frame parts", "variant": "tan", "list": "CATEGORY", "position": 1 } , { "id": "24293", "name": "Electra Townie Derailleur Hanger", "price": "", "brand": "Electra", "category": "Bike hangers & dropouts", "variant": "grey", "list": "CATEGORY", "position": 2 } , { "id": "44687", "name": "Electra Loft Go! 7D Fender Hardware Kit", "price": "", "brand": "Electra", "category": "Bike fenders & accessories", "variant": "greylight", "list": "CATEGORY", "position": 3 } , { "id": "44689", "name": "Electra Loft Go! 7D Rear Lower Fender Strut", "price": "", "brand": "Electra", "category": "Bike fenders & accessories", "variant": "greylight", "list": "CATEGORY", "position": 4 } , { "id": "34817", "name": "Electra Headtube Badge", "price": "", "brand": "Electra", "category": "Bike frame parts", "variant": "greylight", "list": "CATEGORY", "position": 5 } , { "id": "42283", "name": "Electra Cable Routing Grommet", "price": "", "brand": "Electra", "category": "Bike tools & maintenance", "variant": "black", "list": "CATEGORY", "position": 6 } , { "id": "44690", "name": "Electra Loft Go! 7D Rear Upper Fender Strut", "price": "", "brand": "Electra", "category": "Bike fenders & accessories", "variant": "greylight", "list": "CATEGORY", "position": 7 } , { "id": "12591", "name": "Electra Chainguard Badge", "price": "", "brand": "Electra", "category": "Bike frame parts", "variant": "greylight", "list": "CATEGORY", "position": 8 } , { "id": "44688", "name": "Electra Loft Go! 7D Front Fender Strut", "price": "", "brand": "Electra", "category": "Bike fenders & accessories", "variant": "greylight", "list": "CATEGORY", "position": 9 } , { "id": "44700", "name": "Electra Townie Path Go! Fork/Fender Shim", "price": "", "brand": "Electra", "category": "Bike fenders & accessories", "variant": "black", "list": "CATEGORY", "position": 10 } , { "id": "37569", "name": "Electra Townie 135 x 12 mm Derailleur Hanger", "price": "", "brand": "Electra", "category": "Bike hangers & dropouts", "variant": "black", "list": "CATEGORY", "position": 11 } , { "id": "22778", "name": "Electra Cruiser Lux Ad Panels", "price": "", "brand": "Electra", "category": "Bike frame parts", "variant": "white_black", "list": "CATEGORY", "position": 12 } , { "id": "27158", "name": "Electra Café Moto GO! Dropout Kit", "price": "", "brand": "Electra", "category": "Bike hangers & dropouts", "variant": "black", "list": "CATEGORY", "position": 13 } , { "id": "44283", "name": "Electra Loft Go! Seat Tube Badge", "price": "", "brand": "Electra", "category": "Bike frame parts", "variant": "greylight", "list": "CATEGORY", "position": 14 } , { "id": "24291", "name": "Trek-Electra Disc Derailleur Hanger", "price": "", "brand": "Bontrager-Electra", "category": "Bike hangers & dropouts", "variant": "black", "list": "CATEGORY", "position": 15 } ] } }); } else { console.log("dataLayer"); }