if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "INR",
"impressions": [
{
"id": "27542",
"name": "Trek Hydraulic Housing Front Frame Grommet",
"price": "299.0",
"brand": "Trek",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "41592",
"name": "Promax D-Plug Type Brake Hose Fitting Kit",
"price": "199.0",
"brand": "Promax",
"category": "Bike brakes, pads, & levers",
"variant": "greylight_gold",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}