if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "INR",
"impressions": [
{
"id": "36951",
"name": "Trek Starvos WaveCel Cycling Helmet",
"price": "8174.25",
"brand": "Trek",
"category": "Bike helmets",
"variant": "white",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "36025",
"name": "Trek Solstice Mips Bike Helmet",
"price": "5699.0",
"brand": "Trek",
"category": "Bike helmets",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "36028",
"name": "Trek Solstice Bike Helmet",
"price": "3999.0",
"brand": "Trek",
"category": "Bike helmets",
"variant": "yellowvisibility",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "30482",
"name": "Bontrager Solstice Bike Helmet",
"price": "2699.25",
"brand": "Bontrager",
"category": "Bike helmets",
"variant": "yellowvisibility",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}