if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "INR",
"impressions": [
{
"id": "31426",
"name": "Bontrager TLR Rim Strip",
"price": "1099.0",
"brand": "Bontrager",
"category": "Bike rims & accessories",
"variant": "white",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "14221",
"name": "Bontrager TLR Rim Tape",
"price": "599.0",
"brand": "Bontrager",
"category": "Bike rims & accessories",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}