if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "INR",
"impressions": [
{
"id": "36967",
"name": "Marlin 7 Gen 3",
"price": "75699.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "bluelight",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "36966",
"name": "Marlin 6 Gen 3",
"price": "69199.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "teal",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "40773",
"name": "Marlin 5 Gen 3",
"price": "61399.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "40962",
"name": "Marlin 6 Gen 3",
"price": "75699.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "teal_bluedark",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}