Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "INR",
"impressions": [
{
"id": "41448",
"name": "Trek Flare RT Rear Bike Light",
"price": "5299.0",
"brand": "Trek",
"category": "Bike lights",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "14259",
"name": "Bontrager Ion 100 R/Flare R City Bike Light Set",
"price": "6099.0",
"brand": "Bontrager",
"category": "Bike lights",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "14241",
"name": "Bontrager Flare R City Rear Bike Light",
"price": "3399.0",
"brand": "Bontrager",
"category": "Bike lights",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "44445",
"name": "Trek Flare R Metro Rear Bike Light",
"price": "1799.0",
"brand": "Trek",
"category": "Bike lights",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "08923",
"name": "Bontrager Glo/Ember Light Set",
"price": "1899.0",
"brand": "Bontrager",
"category": "Bike lights",
"variant": "black",
"list": "More Options",
"position": 5
}
,
{
"id": "11367",
"name": "Bontrager Flare 1 Rear Bike Light",
"price": "1199.0",
"brand": "Bontrager",
"category": "Bike lights",
"variant": "black",
"list": "More Options",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}