if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "INR",
"impressions": [
{
"id": "47893",
"name": "Trek Gel Cork Handlebar Tape Set",
"price": "1399.0",
"brand": "Trek",
"category": "Bike handlebar grips & tape",
"variant": "gold",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "30976",
"name": "Trek Kids' Twist Shift Grips",
"price": "399.0",
"brand": "Trek",
"category": "Bike handlebar grips & tape",
"variant": "pinkvisibility",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "14211",
"name": "Bontrager XR Silicone Grip",
"price": "2099.0",
"brand": "Bontrager",
"category": "Bike handlebar grips & tape",
"variant": "red",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}