Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "INR",
"impressions": [
{
"id": "27228",
"name": "Bontrager BackRack Deluxe MIK",
"price": "4399.0",
"brand": "Bontrager",
"category": "Bike racks",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "27231",
"name": "Bontrager BackRack MIK",
"price": "4099.0",
"brand": "Bontrager",
"category": "Bike racks",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "22625",
"name": "Trek 1120 Front Rack Bumper Guards",
"price": "99.0",
"brand": "Trek",
"category": "Bike racks",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "25966",
"name": "Bontrager BackRack Strut Kit",
"price": "299.0",
"brand": "Bontrager",
"category": "Bike racks",
"variant": "black",
"list": "More Options",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}