if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "INR",
"impressions": [
{
"id": "44496",
"name": "Trek RCS Pro Stem Blendr Bases",
"price": "1099.0",
"brand": "Trek",
"category": "Bike stems & accessories",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "30491",
"name": "Trek Madone SLR Speed Faceplate",
"price": "2799.0",
"brand": "Trek",
"category": "Bike stems & accessories",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "41357",
"name": "Trek Road Integrated Stem Headset Cable Routing Spacer",
"price": "199.0",
"brand": "Trek",
"category": "Bike stems & accessories",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}