Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "INR",
"impressions": [
{
"id": "23366",
"name": "Bontrager Comp Shift Cable & Housing Set",
"price": "1699.0",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "23277",
"name": "Bontrager Pro Shift Cable & Housing Set",
"price": "4899.0",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "24733",
"name": "Bontrager Brake Cable & Housing Set",
"price": "299.0",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "23371",
"name": "Bontrager Comp Shift Cable",
"price": "299.0",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "grey",
"list": "More Options",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}