if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "INR",
"impressions": [
{
"id": "32735",
"name": "Verve 2 Disc Gen 4",
"price": "50199.0",
"brand": "Trek",
"category": "Comfort & recreation bikes",
"variant": "red",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "32737",
"name": "Verve 1 Disc",
"price": "44199.0",
"brand": "Trek",
"category": "Comfort & recreation bikes",
"variant": "orange",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}