if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "INR",
"impressions": [
{
"id": "41346",
"name": "Fuel EX 5 Gen 6",
"price": "270199.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "teal",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "41670",
"name": "Supercaliber SL 9.6 Gen 2",
"price": "376799.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}