if (typeof dataLayer !== "undefined") { dataLayer.push({ "ecommerce": { "currency": "AUD", "impressions": [ { "id": "41712", "name": "Marlin+ 8", "price": "5399.99", "brand": "Trek", "category": "Electric mountain bikes", "variant": "purple_black", "list": "CATEGORY", "position": 1 } , { "id": "40893", "name": "Allant+ 7 Gen 2", "price": "4999.99", "brand": "Trek", "category": "Electric hybrid bikes", "variant": "greydark", "list": "CATEGORY", "position": 2 } , { "id": "40894", "name": "Allant+ 7 Lowstep Gen 2", "price": "4999.99", "brand": "Trek", "category": "Electric hybrid bikes", "variant": "greydark", "list": "CATEGORY", "position": 3 } , { "id": "41017", "name": "Marlin+ 6", "price": "4299.99", "brand": "Trek", "category": "Electric mountain bikes", "variant": "red", "list": "CATEGORY", "position": 4 } , { "id": "40913", "name": "Dual Sport+ 2 LT", "price": "2999.99", "brand": "Trek", "category": "Electric hybrid bikes", "variant": "blue", "list": "CATEGORY", "position": 5 } , { "id": "47095", "name": "Slash+ 9.9 X0 AXS T-Type", "price": "17999.0", "brand": "Trek", "category": "Electric mountain bikes", "variant": "orange", "list": "CATEGORY", "position": 6 } , { "id": "47141", "name": "Domane+ SLR 7", "price": "13999.99", "brand": "Trek", "category": "Electric road bikes", "variant": "grey", "list": "CATEGORY", "position": 7 } , { "id": "47090", "name": "Slash+ 9.7 SLX/XT", "price": "11499.99", "brand": "Trek", "category": "Electric mountain bikes", "variant": "greendark", "list": "CATEGORY", "position": 8 } , { "id": "41531", "name": "Fuel EXe 5", "price": "5499.99", "brand": "Trek", "category": "Electric mountain bikes", "variant": "black", "list": "CATEGORY", "position": 9 } , { "id": "41552", "name": "Fuel EXe 8 GX AXS T-Type", "price": "6999.99", "brand": "Trek", "category": "Electric mountain bikes", "variant": "tealdark", "list": "CATEGORY", "position": 10 } , { "id": "35277", "name": "Townie Go! 7D Step-Thru", "price": "1999.99", "brand": "Electra", "category": "Electra e-bikes", "variant": "yellowvisibility", "list": "CATEGORY", "position": 11 } , { "id": "37654", "name": "Fetch+ 2", "price": "8499.99", "brand": "Trek", "category": "Electric hybrid bikes", "variant": "red", "list": "CATEGORY", "position": 12 } , { "id": "37135", "name": "Rail 7 Gen 3", "price": "6499.99", "brand": "Trek", "category": "Electric mountain bikes", "variant": "purpledark", "list": "CATEGORY", "position": 13 } , { "id": "36140", "name": "Domane+ AL 5", "price": "3799.99", "brand": "Trek", "category": "Electric road bikes", "variant": "red", "list": "CATEGORY", "position": 14 } , { "id": "36717", "name": "Domane+ SLR 7", "price": "13999.99", "brand": "Trek", "category": "Electric road bikes", "variant": "black_grey", "list": "CATEGORY", "position": 15 } , { "id": "36699", "name": "Domane+ SLR 6 Pro", "price": "12999.99", "brand": "Trek", "category": "Electric road bikes", "variant": "black_grey", "list": "CATEGORY", "position": 16 } , { "id": "41658", "name": "Fuel EXe 9.9 XX AXS T-Type", "price": "12999.99", "brand": "Trek", "category": "Electric mountain bikes", "variant": "blue", "list": "CATEGORY", "position": 17 } , { "id": "41653", "name": "Fuel EXe 9.8 GX AXS T-Type", "price": "8999.99", "brand": "Trek", "category": "Electric mountain bikes", "variant": "black_grey", "list": "CATEGORY", "position": 18 } , { "id": "41663", "name": "Rail 9.8 GX AXS T-Type Gen 4", "price": "7999.99", "brand": "Trek", "category": "Electric mountain bikes", "variant": "grey", "list": "CATEGORY", "position": 19 } , { "id": "41524", "name": "Fuel EXe 9.7", "price": "6999.99", "brand": "Trek", "category": "Electric mountain bikes", "variant": "red", "list": "CATEGORY", "position": 20 } , { "id": "36371", "name": "Fuel EXe 9.9 XTR", "price": "10999.99", "brand": "Trek", "category": "Electric mountain bikes", "variant": "blue", "list": "CATEGORY", "position": 21 } , { "id": "37139", "name": "Rail 9 Gen 3", "price": "7499.99", "brand": "Trek", "category": "Electric mountain bikes", "variant": "black", "list": "CATEGORY", "position": 22 } , { "id": "30924", "name": "Allant+ 7", "price": "5999.99", "brand": "Trek", "category": "Electric hybrid bikes", "variant": "bluedark", "list": "CATEGORY", "position": 23 } ] } }); } else { console.log("dataLayer"); }