if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "SGD",
"impressions": [
{
"id": "41411",
"name": "Trek Pro BITS Multi-Tool",
"price": "140.0",
"brand": "Trek",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "44751",
"name": "Trek Elite BITS Multi-Tool",
"price": "100.0",
"brand": "Trek",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "42298",
"name": "Pirelli SmarTUBE Inner Tube Patch Kit",
"price": "12.0",
"brand": "Pirelli",
"category": "Bike tires",
"variant": "yellow",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}