if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "SGD",
"impressions": [
{
"id": "36057",
"name": "Trek Circuit Softshell Cycling Bib Tights",
"price": "240.0",
"brand": "Trek",
"category": "Men's cycling tights & pants",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "36058",
"name": "Trek Circuit Thermal Cycling Bib Tight",
"price": "190.0",
"brand": "Trek",
"category": "Men's cycling tights & pants",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}