if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "INR",
"impressions": [
{
"id": "40822",
"name": "FX Sport 4",
"price": "149499.0",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "greendark",
"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
}
,
{
"id": "32735",
"name": "Verve 2 Disc Gen 4",
"price": "50199.0",
"brand": "Trek",
"category": "Comfort & recreation bikes",
"variant": "red",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "35060",
"name": "Dual Sport 1 Gen 4",
"price": "46099.0",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "greydark",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "32737",
"name": "Verve 1 Disc",
"price": "44199.0",
"brand": "Trek",
"category": "Comfort & recreation bikes",
"variant": "orange",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "36824",
"name": "Dual Sport 1 Gen 5",
"price": "39999.0",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}