if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CAD",
"impressions": [
{
"id": "37148",
"name": "Wolf Tooth Alloy Bar End Plug",
"price": "26.99",
"brand": "Wolf Tooth Components",
"category": "Bike handlebars",
"variant": "red",
"list": "CATEGORY",
"position": 1
}
]
}
});
} else {
console.log("dataLayer");
}