if (typeof dataLayer !== "undefined") { dataLayer.push({ "ecommerce": { "currency": "", "impressions": [ { "id": "48020", "name": "Speed Concept SLR 9 AXS", "price": "", "brand": "Trek", "category": "Triathlon bikes", "variant": "reddark_black", "list": "CATEGORY", "position": 1 } , { "id": "49162", "name": "Speed Concept SLR 8 AXS", "price": "", "brand": "Trek", "category": "Triathlon bikes", "variant": "reddark_black", "list": "CATEGORY", "position": 2 } , { "id": "35577", "name": "Speed Concept SLR 7", "price": "", "brand": "Trek", "category": "Triathlon bikes", "variant": "reddark_black", "list": "CATEGORY", "position": 3 } , { "id": "41499", "name": "Speed Concept SLR 7 AXS", "price": "", "brand": "Trek", "category": "Triathlon bikes", "variant": "reddark_black", "list": "CATEGORY", "position": 4 } , { "id": "35757", "name": "Speed Concept SLR 9", "price": "", "brand": "Trek", "category": "Triathlon bikes", "variant": "reddark_black", "list": "CATEGORY", "position": 5 } , { "id": "35746", "name": "Cuadro Speed Concept TT", "price": "", "brand": "Trek", "category": "Triathlon bikes", "variant": "grey_black", "list": "CATEGORY", "position": 6 } , { "id": "35671", "name": "Cuadro Speed Concept SLR", "price": "", "brand": "Trek", "category": "Triathlon bikes", "variant": "grey_black", "list": "CATEGORY", "position": 7 } , { "id": "35754", "name": "Speed Concept SLR 6 AXS", "price": "", "brand": "Trek", "category": "Triathlon bikes", "variant": "green_black", "list": "CATEGORY", "position": 8 } , { "id": "22055", "name": "Cuadro Speed Concept RIN", "price": "", "brand": "Trek", "category": "Triathlon bikes", "variant": "black", "list": "CATEGORY", "position": 9 } , { "id": "29527", "name": "Cuadro Madone SLR Disc Gen 6", "price": "", "brand": "Trek", "category": "Performance road bikes", "variant": "black_grey", "list": "CATEGORY", "position": 10 } , { "id": "33044", "name": "Cuadro Madone SLR Gen 6", "price": "", "brand": "Trek", "category": "Performance road bikes", "variant": "grey_reddark", "list": "CATEGORY", "position": 11 } ] } }); } else { console.log("dataLayer"); }