if (typeof dataLayer !== "undefined") { dataLayer.push({ "ecommerce": { "currency": "AUD", "impressions": [ { "id": "35003", "name": "FX 2 Disc Gen 3", "price": "799.99", "brand": "Trek", "category": "Fitness bikes", "variant": "greydark", "list": "CATEGORY", "position": 1 } , { "id": "35002", "name": "FX 1 Disc Mid-step Gen 3", "price": "599.99", "brand": "Trek", "category": "Fitness bikes", "variant": "grey", "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": "40893", "name": "Allant+ 7 Gen 2", "price": "4999.99", "brand": "Trek", "category": "Electric hybrid bikes", "variant": "greydark", "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": "40826", "name": "Dual Sport 3 Gen 5", "price": "1399.99", "brand": "Trek", "category": "Dual Sport bikes", "variant": "orange", "list": "CATEGORY", "position": 6 } , { "id": "40824", "name": "Dual Sport 2 Gen 5", "price": "1099.99", "brand": "Trek", "category": "Dual Sport bikes", "variant": "red", "list": "CATEGORY", "position": 7 } , { "id": "40823", "name": "Dual Sport 1 Gen 5", "price": "899.99", "brand": "Trek", "category": "Dual Sport bikes", "variant": "green", "list": "CATEGORY", "position": 8 } , { "id": "47243", "name": "FX Sport 4", "price": "2599.99", "brand": "Trek", "category": "Fitness bikes", "variant": "black", "list": "CATEGORY", "position": 9 } , { "id": "28080", "name": "Townie 7D Step-Thru", "price": "499.99", "brand": "Electra", "category": "Townie", "variant": "green", "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": "16810", "name": "Loft 7D Step-Thru", "price": "699.99", "brand": "Electra", "category": "Loft", "variant": "red", "list": "CATEGORY", "position": 12 } , { "id": "16717", "name": "Loft 7D Step-Over", "price": "699.99", "brand": "Electra", "category": "Loft", "variant": "brown_green", "list": "CATEGORY", "position": 13 } , { "id": "28079", "name": "Townie 7D Step-Over", "price": "499.99", "brand": "Electra", "category": "Townie", "variant": "blue", "list": "CATEGORY", "position": 14 } , { "id": "37654", "name": "Fetch+ 2", "price": "8499.99", "brand": "Trek", "category": "Electric hybrid bikes", "variant": "red", "list": "CATEGORY", "position": 15 } , { "id": "35785", "name": "FX Sport 4", "price": "2499.99", "brand": "Trek", "category": "Fitness bikes", "variant": "greydark", "list": "CATEGORY", "position": 16 } , { "id": "30924", "name": "Allant+ 7", "price": "5999.99", "brand": "Trek", "category": "Electric hybrid bikes", "variant": "bluedark", "list": "CATEGORY", "position": 17 } , { "id": "35850", "name": "FX+ 2", "price": "2999.99", "brand": "Trek", "category": "Electric hybrid bikes", "variant": "blue", "list": "CATEGORY", "position": 18 } , { "id": "35851", "name": "FX+ 2 Stagger", "price": "2999.99", "brand": "Trek", "category": "Electric hybrid bikes", "variant": "blue", "list": "CATEGORY", "position": 19 } , { "id": "36397", "name": "Dual Sport+ 2 Stagger", "price": "2999.99", "brand": "Trek", "category": "Electric hybrid bikes", "variant": "blue", "list": "CATEGORY", "position": 20 } , { "id": "36396", "name": "Dual Sport+ 2", "price": "2999.99", "brand": "Trek", "category": "Electric hybrid bikes", "variant": "blue", "list": "CATEGORY", "position": 21 } , { "id": "36826", "name": "Dual Sport 3 Gen 5", "price": "1599.99", "brand": "Trek", "category": "Dual Sport bikes", "variant": "green", "list": "CATEGORY", "position": 22 } , { "id": "35021", "name": "FX 3 Disc Gen 3", "price": "1499.99", "brand": "Trek", "category": "Fitness bikes", "variant": "red_reddark", "list": "CATEGORY", "position": 23 } ] } }); } else { console.log("dataLayer"); }