if (typeof dataLayer !== "undefined") { dataLayer.push({ "ecommerce": { "currency": "MXN", "impressions": [ { "id": "41513", "name": "Checkpoint ALR 4", "price": "38999.0", "brand": "Trek", "category": "Checkpoint", "variant": "grey", "list": "CATEGORY", "position": 1 } , { "id": "35668", "name": "Cuadro Checkpoint ALR", "price": "19999.0", "brand": "Trek", "category": "Checkpoint", "variant": "reddark", "list": "CATEGORY", "position": 2 } , { "id": "46152", "name": "Checkmate SLR 9 AXS", "price": "259999.0", "brand": "Trek", "category": "Gravel bikes", "variant": "greendark_greenlight", "list": "CATEGORY", "position": 3 } , { "id": "46692", "name": "Checkmate SLR 7 AXS", "price": "189999.0", "brand": "Trek", "category": "Gravel bikes", "variant": "greendark_greenlight", "list": "CATEGORY", "position": 4 } , { "id": "47071", "name": "Checkpoint SL 5 AXS Gen 3", "price": "82999.0", "brand": "Trek", "category": "Checkpoint", "variant": "red_greendark", "list": "CATEGORY", "position": 5 } , { "id": "35171", "name": "Checkpoint SL 7 AXS Gen 2", "price": "96719.0", "brand": "Trek", "category": "Checkpoint", "variant": "blue_grey", "list": "CATEGORY", "position": 6 } , { "id": "35296", "name": "Checkpoint SLR 9 AXS", "price": "259999.0", "brand": "Trek", "category": "Checkpoint", "variant": "yellow_bluedark", "list": "CATEGORY", "position": 7 } , { "id": "35293", "name": "Checkpoint SLR 6 AXS", "price": "165999.0", "brand": "Trek", "category": "Checkpoint", "variant": "yellow_bluedark", "list": "CATEGORY", "position": 8 } , { "id": "35294", "name": "Checkpoint SLR 7", "price": "163999.0", "brand": "Trek", "category": "Checkpoint", "variant": "yellow_bluedark", "list": "CATEGORY", "position": 9 } , { "id": "35295", "name": "Checkpoint SLR 7 AXS", "price": "202999.0", "brand": "Trek", "category": "Checkpoint", "variant": "yellow_bluedark", "list": "CATEGORY", "position": 10 } , { "id": "37059", "name": "Domane SLR 7 Gen 4", "price": "126749.0", "brand": "Trek", "category": "Performance road bikes", "variant": "black_grey", "list": "CATEGORY", "position": 11 } , { "id": "41348", "name": "Domane SL 5 Gen 4", "price": "79999.0", "brand": "Trek", "category": "Performance road bikes", "variant": "black_grey", "list": "CATEGORY", "position": 12 } , { "id": "41607", "name": "Domane AL 4 Gen 4", "price": "37999.0", "brand": "Trek", "category": "Performance road bikes", "variant": "white", "list": "CATEGORY", "position": 13 } , { "id": "41587", "name": "Domane AL 2 Gen 4", "price": "26499.0", "brand": "Trek", "category": "Performance road bikes", "variant": "greydark", "list": "CATEGORY", "position": 14 } , { "id": "37358", "name": "Domane SLR 9 AXS Gen 4", "price": "209999.0", "brand": "Trek", "category": "Performance road bikes", "variant": "white", "list": "CATEGORY", "position": 15 } , { "id": "37356", "name": "Domane SLR 7 AXS Gen 4", "price": "219999.0", "brand": "Trek", "category": "Performance road bikes", "variant": "black", "list": "CATEGORY", "position": 16 } , { "id": "36742", "name": "Domane+ SLR 9", "price": "269999.0", "brand": "Trek", "category": "Electric road bikes", "variant": "white_gold", "list": "CATEGORY", "position": 17 } , { "id": "41482", "name": "Domane+ SLR 7 AXS", "price": "234999.0", "brand": "Trek", "category": "Electric road bikes", "variant": "white_gold", "list": "CATEGORY", "position": 18 } , { "id": "36711", "name": "Domane+ SLR 7", "price": "224999.0", "brand": "Trek", "category": "Electric road bikes", "variant": "white_gold", "list": "CATEGORY", "position": 19 } ] } }); } else { console.log("dataLayer"); }