if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "SGD",
"impressions": [
{
"id": "23381",
"name": "Bontrager Chain Lube",
"price": "20.0",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "32664",
"name": "Loctite Hysol 9460 Epoxy Adhesive - 50ml",
"price": "124.0",
"brand": "Loctite",
"category": "Bike tools & maintenance",
"variant": "white",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "32120",
"name": "Tektro Hydraulic Brake Fluid",
"price": "16.0",
"brand": "Tektro",
"category": "Bike tools & maintenance",
"variant": "red",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}