if (typeof dataLayer !== "undefined") { dataLayer.push({ "ecommerce": { "currency": "CAD", "impressions": [ { "id": "10882", "name": "Bontrager DT Aerolite Bladed Nail-Head Spoke - Box of 10", "price": "4.49", "brand": "Bontrager", "category": "Spokes", "variant": "black", "list": "CATEGORY", "position": 1 } , { "id": "45446", "name": "Bontrager Aeolus Pro Spoke Nipple Washers", "price": "3.99", "brand": "Bontrager", "category": "Spokes", "variant": "greylight", "list": "CATEGORY", "position": 2 } , { "id": "32840", "name": "Bontrager Round J-Bend Spoke Box of 10", "price": "1.99", "brand": "Bontrager", "category": "Spokes", "variant": "black", "list": "CATEGORY", "position": 3 } , { "id": "45421", "name": "Electra Ponto Go! 20˝ Spokes", "price": "3.99", "brand": "Electra", "category": "Spokes", "variant": "greylight", "list": "CATEGORY", "position": 4 } , { "id": "44340", "name": "Alpina Spark 13/14 Gauge Round J-Bend Spoke Box of 10", "price": "2.49", "brand": "Alpina", "category": "Spokes", "variant": "black", "list": "CATEGORY", "position": 5 } ] } }); } else { console.log("dataLayer"); }