if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CAD",
"impressions": [
{
"id": "30187",
"name": "Stache C Frameset",
"price": "2199.97",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greydark_greenvisibility",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "29103",
"name": "Stache AL Frameset",
"price": "1499.99",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}