if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CAD",
"impressions": [
{
"id": "34161",
"name": "OTTOLOCK SIDEKICK / 30'' Cinch Bundle",
"price": "114.99",
"brand": "OTTOLOCK",
"category": "Bike locks",
"variant": "orange",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "32641",
"name": "OTTOLOCK Cinch Lock",
"price": "74.99",
"brand": "OTTOLOCK",
"category": "Bike locks",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}