if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CAD",
"impressions": [
{
"id": "42283",
"name": "Electra Cable Routing Grommet",
"price": "3.99",
"brand": "Electra",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "41770",
"name": "Bontrager-Electra M3 Button Head Bolt",
"price": "1.49",
"brand": "Bontrager-Electra",
"category": "Bike frame parts",
"variant": "greylight",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}