if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "INR",
"impressions": [
{
"id": "27228",
"name": "Bontrager BackRack Deluxe MIK",
"price": "4399.0",
"brand": "Bontrager",
"category": "Bike racks",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "27231",
"name": "Bontrager BackRack MIK",
"price": "4099.0",
"brand": "Bontrager",
"category": "Bike racks",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}