if (typeof dataLayer !== "undefined") { dataLayer.push({ "ecommerce": { "currency": "CAD", "impressions": [ { "id": "47412", "name": "Fox Racing Defend Mountain Bike Short", "price": "149.95", "brand": "Fox Racing", "category": "Mountain bike shorts & bib shorts", "variant": "black", "list": "CATEGORY", "position": 1 } , { "id": "49664", "name": "Fox Racing x Trek Ranger Mountain Bike Short with Liner", "price": "129.95", "brand": "Fox Racing", "category": "Mountain bike shorts & bib shorts", "variant": "black", "list": "CATEGORY", "position": 2 } , { "id": "47408", "name": "Fox Racing Tecbase Liner Short", "price": "104.95", "brand": "Fox Racing", "category": "Mountain bike shorts & bib shorts", "variant": "black", "list": "CATEGORY", "position": 3 } , { "id": "40407", "name": "Fox Racing Flexair Mountain Bike Short", "price": "88.93", "brand": "Fox Racing", "category": "Mountain bike shorts & bib shorts", "variant": "black_white", "list": "CATEGORY", "position": 4 } , { "id": "40408", "name": "Fox Racing Defend Mountain Bike Short", "price": "88.93", "brand": "Fox Racing", "category": "Mountain bike shorts & bib shorts", "variant": "black", "list": "CATEGORY", "position": 5 } , { "id": "40409", "name": "Fox Racing Ranger Mountain Bike Short with Liner", "price": "81.93", "brand": "Fox Racing", "category": "Mountain bike shorts & bib shorts", "variant": "green", "list": "CATEGORY", "position": 6 } , { "id": "44535", "name": "Fox Racing Tecbase Liner Short", "price": "74.99", "brand": "Fox Racing", "category": "Mountain bike shorts & bib shorts", "variant": "black", "list": "CATEGORY", "position": 7 } , { "id": "41149", "name": "Trek Rhythm Mountain Bike Short", "price": "129.99", "brand": "Trek", "category": "Mountain bike shorts & bib shorts", "variant": "black", "list": "CATEGORY", "position": 8 } , { "id": "37084", "name": "Trek Evoke Mountain Bike Short", "price": "119.93", "brand": "Trek", "category": "Mountain bike shorts & bib shorts", "variant": "black", "list": "CATEGORY", "position": 9 } , { "id": "37090", "name": "Trek Troslo Liner Short", "price": "79.99", "brand": "Trek", "category": "Mountain bike shorts & bib shorts", "variant": "black", "list": "CATEGORY", "position": 10 } , { "id": "33315", "name": "100% R-Core Downhill Bike Short", "price": "89.99", "brand": "100%", "category": "Mountain bike shorts & bib shorts", "variant": "black", "list": "CATEGORY", "position": 11 } , { "id": "56816", "name": "Santini Trek Factory Racing Men's Team Replica Bib Short", "price": "179.99", "brand": "Santini", "category": "Mountain bike shorts & bib shorts", "variant": "bluedark", "list": "CATEGORY", "position": 12 } , { "id": "44137", "name": "Santini Trek Factory Racing Men's Team Replica Bib Short", "price": "109.99", "brand": "Santini", "category": "Mountain bike shorts & bib shorts", "variant": "bluedark", "list": "CATEGORY", "position": 13 } , { "id": "34847", "name": "Santini Trek Factory Racing Men's XC Team Replica Bib Short", "price": "105.01", "brand": "Santini", "category": "Road bike shorts & bib shorts", "variant": "bluedark_bluelight", "list": "CATEGORY", "position": 14 } , { "id": "22789", "name": "Bontrager Evoke Mountain Short", "price": "64.99", "brand": "Bontrager", "category": "Mountain bike shorts & bib shorts", "variant": "black", "list": "CATEGORY", "position": 15 } , { "id": "22791", "name": "Bontrager Quantum Fitness Short", "price": "40.01", "brand": "Bontrager", "category": "Road bike shorts & bib shorts", "variant": "greendark", "list": "CATEGORY", "position": 16 } ] } }); } else { console.log("dataLayer"); }