if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CAD",
"impressions": [
{
"id": "41655",
"name": "Boone 5",
"price": "5099.99",
"brand": "Trek",
"category": "Cyclocross bikes",
"variant": "greylight",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "35664",
"name": "Crockett Disc Frameset",
"price": "1649.99",
"brand": "Trek",
"category": "Cyclocross bikes",
"variant": "red_tealdark",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "35696",
"name": "Boone Disc Frameset",
"price": "3599.99",
"brand": "Trek",
"category": "Cyclocross bikes",
"variant": "red_bluedark",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}