if (typeof dataLayer !== "undefined") { dataLayer.push({ "ecommerce": { "currency": "USD", "impressions": [ { "id": "33726", "name": "Trek Domane+ Handlebar Cable Wrangler", "price": "9.99", "brand": "Trek", "category": "Bike tools & maintenance", "variant": "black", "list": "CATEGORY", "position": 1 } , { "id": "25835", "name": "Trek BarStem Titanium Pinch Bolt", "price": "8.5", "brand": "Trek", "category": "Bike handlebars", "variant": "grey", "list": "CATEGORY", "position": 2 } , { "id": "14910", "name": "Trek Madone Handlebar/Stem Pinchbolt Insert Nut", "price": "8.5", "brand": "Trek", "category": "Bike handlebars", "variant": "black", "list": "CATEGORY", "position": 3 } , { "id": "32593", "name": "Trek Blendr to Handlebar/Stem Mounting Bolt", "price": "2.5", "brand": "Trek", "category": "Bike handlebars", "variant": "black", "list": "CATEGORY", "position": 4 } , { "id": "47384", "name": "Trek Aero RSL Barstem Pro Blendr Mount", "price": "64.99", "brand": "Bontrager", "category": "Bike computers & GPS", "variant": "black_greydark", "list": "CATEGORY", "position": 5 } , { "id": "36296", "name": "Nite Ize Squeeze Rotating Smartphone Bar Mount", "price": "34.99", "brand": "Nite Ize", "category": "Phone & tablet accessories", "variant": "greylight", "list": "CATEGORY", "position": 6 } , { "id": "36127", "name": "K-EDGE Wahoo Max Combo Mount", "price": "94.99", "brand": "K-EDGE", "category": "Bike computers & GPS", "variant": "black", "list": "CATEGORY", "position": 7 } , { "id": "36125", "name": "K-EDGE Garmin Max XL Combo Mount", "price": "94.99", "brand": "K-EDGE", "category": "Bike computers & GPS", "variant": "black", "list": "CATEGORY", "position": 8 } , { "id": "36129", "name": "K-EDGE Wahoo Max XL Combo Mount", "price": "94.99", "brand": "K-EDGE", "category": "Bike computers & GPS", "variant": "black", "list": "CATEGORY", "position": 9 } , { "id": "36123", "name": "K-EDGE Garmin Max Combo Mount", "price": "94.99", "brand": "K-EDGE", "category": "Bike computers & GPS", "variant": "black", "list": "CATEGORY", "position": 10 } , { "id": "36122", "name": "K-EDGE Garmin Max Mount", "price": "74.99", "brand": "K-EDGE", "category": "Bike computers & GPS", "variant": "black", "list": "CATEGORY", "position": 11 } , { "id": "36126", "name": "K-EDGE Wahoo Max Mount", "price": "74.99", "brand": "K-EDGE", "category": "Bike computers & GPS", "variant": "black", "list": "CATEGORY", "position": 12 } , { "id": "36124", "name": "K-EDGE Garmin Max XL Mount", "price": "74.99", "brand": "K-EDGE", "category": "Bike computers & GPS", "variant": "black", "list": "CATEGORY", "position": 13 } , { "id": "14579", "name": "Electra Quick Release Basket Bracket & Mount", "price": "34.99", "brand": "Electra", "category": "Bike handlebars", "variant": "greylight_black", "list": "CATEGORY", "position": 14 } , { "id": "41067", "name": "Hyena Bluetooth HMI Clamp", "price": "15.99", "brand": "Hyena", "category": "Bike handlebars", "variant": "black", "list": "CATEGORY", "position": 15 } ] } }); } else { console.log("dataLayer"); }