if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "SGD",
"impressions": [
{
"id": "25835",
"name": "Trek BarStem Titanium Pinch Bolt",
"price": "10.0",
"brand": "Trek",
"category": "Bike handlebars",
"variant": "grey",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "32593",
"name": "Trek Blendr to BarStem Mounting Bolt",
"price": "5.0",
"brand": "Trek",
"category": "Bike handlebars",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "47384",
"name": "Trek Aero RSL Barstem Pro Blendr Mount",
"price": "70.0",
"brand": "Bontrager",
"category": "Bike computers & GPS",
"variant": "black_greydark",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}