if (typeof dataLayer !== "undefined") { dataLayer.push({ "ecommerce": { "currency": "INR", "impressions": [ { "id": "41293", "name": "Trek Domane SL 5 Downtube Storage Door", "price": "3399.0", "brand": "Trek", "category": "Bike frame parts", "variant": "black_grey", "list": "CATEGORY", "position": 1 } , { "id": "32236", "name": "Trek 2020 Domane SLR Downtube Storage Cover", "price": "3299.0", "brand": "Trek", "category": "Bike frame parts", "variant": "black", "list": "CATEGORY", "position": 2 } , { "id": "46105", "name": "Trek 2024 Checkpoint SL IsoSpeed Cover", "price": "2299.0", "brand": "Trek", "category": "Bike frame parts", "variant": "orange", "list": "CATEGORY", "position": 3 } , { "id": "32240", "name": "Trek 2020 Domane SLR Brow Cover", "price": "1299.0", "brand": "Trek", "category": "Bike frame parts", "variant": "red", "list": "CATEGORY", "position": 4 } , { "id": "32199", "name": "Trek 2020 Domane SL Brow Cover", "price": "1299.0", "brand": "Trek", "category": "Bike frame parts", "variant": "black", "list": "CATEGORY", "position": 5 } , { "id": "35918", "name": "Trek 2022 Domane SL Brow Cover", "price": "1299.0", "brand": "Trek", "category": "Bike frame parts", "variant": "reddark", "list": "CATEGORY", "position": 6 } , { "id": "31335", "name": "Trek 2020 Domane Downtube Storage Frame", "price": "399.0", "brand": "Trek", "category": "Bike frame parts", "variant": "black", "list": "CATEGORY", "position": 7 } , { "id": "41609", "name": "Trek Domane Storage Door Replacement Latch Wing", "price": "299.0", "brand": "Trek", "category": "Bike frame parts", "variant": "black", "list": "CATEGORY", "position": 8 } ] } }); } else { console.log("dataLayer"); }