if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CAD",
"impressions": [
{
"id": "40324",
"name": "Electra Fern Pannier Bag",
"price": "119.93",
"brand": "Electra",
"category": "Bike bags",
"variant": "black_grey",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "40323",
"name": "Electra Heather Charcoal Pannier Bag",
"price": "119.93",
"brand": "Electra",
"category": "Bike bags",
"variant": "black_grey",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}