if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "INR",
"impressions": [
{
"id": "13661",
"name": "Madone KVF Aero Integrated Handlebar/Stem",
"price": "35199.0",
"brand": "Trek",
"category": "Bike stems & accessories",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "42042",
"name": "Trek 2023 Madone SLR Gen 7 Integrated Barstem Bearing Top Cap",
"price": "299.0",
"brand": "Trek",
"category": "Bike stems & accessories",
"variant": "black_greydark",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}