if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "INR",
"impressions": [
{
"id": "27539",
"name": "Trek Seat Tube Wire Routing Frame Grommet",
"price": "99.0",
"brand": "Trek",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "32279",
"name": "Trek Madone 9 Series Open Groove Bottom Bracket Cable Guide",
"price": "99.0",
"brand": "Trek",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "32072",
"name": "Trek Front Derailleur Cable Sleeve 300mm",
"price": "99.0",
"brand": "Trek",
"category": "Bike tools & maintenance",
"variant": "white",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "41765",
"name": "Trek 2023 Marlin 29 Cable Entry Hole Plug",
"price": "99.0",
"brand": "Trek",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}