if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "SGD",
"impressions": [
{
"id": "23371",
"name": "Bontrager Comp Shift Cable",
"price": "8.0",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "grey",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "45327",
"name": "microSHIFT SL-M6285-R 8-Speed Shifter",
"price": "34.0",
"brand": "microSHIFT",
"category": "Bike shifters",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "45328",
"name": "microSHIFT SL-M6295-R 9-Speed Shifter",
"price": "34.0",
"brand": "microSHIFT",
"category": "Bike shifters",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}