if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "SGD",
"impressions": [
{
"id": "14227",
"name": "Bontrager Bike Helmet Buckle",
"price": "6.0",
"brand": "Bontrager",
"category": "Bike helmets",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "11199",
"name": "Bontrager Lockdown Bike Helmet Strap Divider",
"price": "4.0",
"brand": "Bontrager",
"category": "Bike helmets",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}