if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "INR",
"impressions": [
{
"id": "34651",
"name": "Trek Circuit Cycling Jersey",
"price": "5174.25",
"brand": "Trek",
"category": "Road bike jerseys",
"variant": "red",
"list": "PRODUCTSEARCH",
"position": 1
}
,
{
"id": "32742",
"name": "Trek Circuit Cycling Bib Shorts",
"price": "7274.25",
"brand": "Trek",
"category": "Road bike shorts & bib shorts",
"variant": "black",
"list": "PRODUCTSEARCH",
"position": 2
}
,
{
"id": "34650",
"name": "Trek Circuit LTD Cycling Jersey",
"price": "5249.25",
"brand": "Trek",
"category": "Road bike jerseys",
"variant": "greydark_black",
"list": "PRODUCTSEARCH",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}