if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CAD",
"impressions": [
{
"id": "47358",
"name": "Trek Adventure Top Tube Bag",
"price": "69.99",
"brand": "Trek",
"category": "Bike bags",
"variant": "black_greylight",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "77032",
"name": "Pirelli Cinturato GRAVEL Performance RM Gravel Tire",
"price": "106.99",
"brand": "Pirelli",
"category": "Bike tires",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}