if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CAD",
"impressions": [
{
"id": "37114",
"name": "Fetch+ 4",
"price": "9499.97",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "red",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "37640",
"name": "Fetch+ 2",
"price": "5999.97",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "red",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}