if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "INR",
"impressions": [
{
"id": "36826",
"name": "Dual Sport 3 Gen 5",
"price": "72799.0",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "green",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "36823",
"name": "Dual Sport 2 Gen 5",
"price": "52199.0",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "green",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}