if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "INR",
"impressions": [
{
"id": "40773",
"name": "Marlin 5 Gen 3",
"price": "61399.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "41346",
"name": "Fuel EX 5 Gen 6",
"price": "270199.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "teal",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "40962",
"name": "Marlin 6 Gen 3",
"price": "75699.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "teal_bluedark",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "36966",
"name": "Marlin 6 Gen 3",
"price": "69199.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "teal",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "35112",
"name": "X-Caliber 9",
"price": "118999.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "orange",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "34649",
"name": "Marlin 8 Gen 2",
"price": "99199.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "redlight",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "35069",
"name": "X-Caliber 8",
"price": "93399.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "greydark",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "33192",
"name": "Roscoe 6",
"price": "76649.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greendark_blue",
"list": "CATEGORY",
"position": 8
}
,
{
"id": "36967",
"name": "Marlin 7 Gen 3",
"price": "75699.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "bluelight",
"list": "CATEGORY",
"position": 9
}
,
{
"id": "34587",
"name": "Marlin 5 Gen 2",
"price": "53699.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "greydark",
"list": "CATEGORY",
"position": 10
}
]
}
});
} else {
console.log("dataLayer");
}