if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "SGD",
"impressions": [
{
"id": "37985",
"name": "Bontrager Aeolus RSL TLR Road Tyre",
"price": "140.0",
"brand": "Bontrager",
"category": "Bike tires",
"variant": "black_tan",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "25926",
"name": "Bontrager R3 Hard-Case Lite TLR Road Tyre",
"price": "100.0",
"brand": "Bontrager",
"category": "Bike tires",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "48770",
"name": "Pirelli P Zero TLR RS Road Bike Tyre",
"price": "125.0",
"brand": "Pirelli",
"category": "Bike tires",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}