if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "INR",
"impressions": [
{
"id": "45510",
"name": "Émonda SL 4",
"price": "195199.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "white_grey",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "30189",
"name": "Émonda SL Frame Set",
"price": "138999.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "black_red",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "41352",
"name": "Émonda SL 6",
"price": "417199.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "red",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}