if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "SGD",
"impressions": [
{
"id": "41474",
"name": "Promax Threadless Stem for 22.2mm Handlebar",
"price": "24.0",
"brand": "Lee Chi",
"category": "Bike stems & accessories",
"variant": "black",
"list": "PRODUCTSEARCH",
"position": 1
}
,
{
"id": "32116",
"name": "Tektro Hydraulic Brake Olive and Barb Hose Fittings - 10 Pack",
"price": "16.0",
"brand": "Trek",
"category": "Bike brakes, pads, & levers",
"variant": "gold",
"list": "PRODUCTSEARCH",
"position": 2
}
,
{
"id": "47138",
"name": "Bontrager Rotary Head Seatpost 7 x 10 mm Saddle Clamp Ears",
"price": "15.0",
"brand": "Bontrager",
"category": "Bike seatposts & accessories",
"variant": "black",
"list": "PRODUCTSEARCH",
"position": 3
}
,
{
"id": "48305",
"name": "Tektro TR-52 6-Bolt Disc Brake Rotor",
"price": "15.0",
"brand": "Tektro",
"category": "Bike brakes, pads, & levers",
"variant": "greylight",
"list": "PRODUCTSEARCH",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}