Overview
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": "More Options",
"position": 1
}
,
{
"id": "40815",
"name": "FX 2 Gen 4",
"price": "59999.0",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "blue",
"list": "More Options",
"position": 2
}
,
{
"id": "40813",
"name": "FX 1 Gen 4",
"price": "51599.0",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "blue",
"list": "More Options",
"position": 3
}
,
{
"id": "35787",
"name": "FX Sport 6",
"price": "252099.0",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "35786",
"name": "FX Sport 5",
"price": "180399.0",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "reddark",
"list": "More Options",
"position": 5
}
,
{
"id": "40822",
"name": "FX Sport 4",
"price": "149499.0",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "greendark",
"list": "More Options",
"position": 6
}
,
{
"id": "35021",
"name": "FX 3 Disc Gen 3",
"price": "75999.0",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "white",
"list": "More Options",
"position": 7
}
,
{
"id": "35001",
"name": "FX 1 Disc Gen 3",
"price": "51599.0",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "black",
"list": "More Options",
"position": 8
}
]
}
});
} else {
console.log("dataLayer");
}