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