if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "INR",
"impressions": [
{
"id": "40819",
"name": "FX 3 Gen 4",
"price": "79990.0",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "40815",
"name": "FX 2 Gen 4",
"price": "59999.0",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "40813",
"name": "FX 1 Gen 4",
"price": "51599.0",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "35003",
"name": "FX 2 Disc Gen 3",
"price": "55999.0",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "red",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "32769",
"name": "FX 1 Gen 3",
"price": "37099.0",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "35021",
"name": "FX 3 Disc Gen 3",
"price": "75999.0",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "white",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "35001",
"name": "FX 1 Disc Gen 3",
"price": "51599.0",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "black",
"list": "CATEGORY",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}