if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "SGD",
"impressions": [
{
"id": "47224",
"name": "Procaliber 9.6 Gen 3",
"price": "4199.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "greenlight_tealdark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "41642",
"name": "Procaliber 9.6 Gen 2",
"price": "4199.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "41615",
"name": "Procaliber 6",
"price": "2199.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "red",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}