if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "INR",
"impressions": [
{
"id": "32065",
"name": "Trek Chainstay Derailleur Cable Stop (Round)",
"price": "99.0",
"brand": "Trek",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "12290",
"name": "Trek Speed Concept Front Derailleur Frame Grommet",
"price": "99.0",
"brand": "Trek",
"category": "Bike frame parts",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "32072",
"name": "Trek Front Derailleur 300mm Cable Sleeve",
"price": "99.0",
"brand": "Trek",
"category": "Bike tools & maintenance",
"variant": "white",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "45325",
"name": "microSHIFT ADVENT RD-M6195 9-Speed Rear Derailleur",
"price": "4699.0",
"brand": "microSHIFT",
"category": "Bike derailleurs",
"variant": "black_greydark",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}