if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "INR",
"impressions": [
{
"id": "48049",
"name": "Trek Aero RSL Road Integrated Handlebar/Stem",
"price": "51739.0",
"brand": "Trek",
"category": "Bike stems & accessories",
"variant": "black_grey",
"list": "PRODUCTSEARCH",
"position": 1
}
,
{
"id": "14991",
"name": "Bontrager Approved DC-27 7-Speed Freehub Body",
"price": "2059.0",
"brand": "Bontrager",
"category": "Bike hubs & hub parts",
"list": "PRODUCTSEARCH",
"position": 2
}
,
{
"id": "25893",
"name": "Trek 2-Bolt Seatpost 7x7mm Saddle Clamp Ears",
"price": "1209.0",
"brand": "Trek",
"category": "Bike seatposts & accessories",
"variant": "black",
"list": "PRODUCTSEARCH",
"position": 3
}
,
{
"id": "41395",
"name": "Domane AL 5 Gen 4",
"price": "184299.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "black",
"list": "PRODUCTSEARCH",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}