if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CAD",
"impressions": [
{
"id": "25341",
"name": "Bontrager Foray Mountain Shoe",
"price": "199.99",
"brand": "Bontrager",
"category": "Mountain bike shoes",
"variant": "greendark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "21728",
"name": "Bontrager Evoke Mountain Shoe",
"price": "39.99",
"brand": "Bontrager",
"category": "Mountain bike shoes",
"variant": "bluedark_yellow",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}