Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "INR",
"impressions": [
{
"id": "27542",
"name": "Trek Hydraulic Housing Front Frame Grommet",
"price": "299.0",
"brand": "Trek",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "41592",
"name": "Promax D-Plug Type Brake Hose Fitting Kit",
"price": "199.0",
"brand": "Promax",
"category": "Bike brakes, pads, & levers",
"variant": "greylight_gold",
"list": "More Options",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}