if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "INR",
"impressions": [
{
"id": "21832",
"name": "Bontrager NCS Mudguard Set",
"price": "6299.0",
"brand": "Bontrager",
"category": "Bike fenders & accessories",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "25458",
"name": "Trek Road Disc Fork Fender Hardware",
"price": "1499.0",
"brand": "Trek",
"category": "Bike fenders & accessories",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "34052",
"name": "Trek-Diamant Fender & Rack Mounting Spacer",
"price": "199.0",
"brand": "Trek-Diamant",
"category": "Bike fenders & accessories",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}