if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "SGD",
"impressions": [
{
"id": "32745",
"name": "Trek Circuit Women's Cycling Shorts",
"price": "150.0",
"brand": "Trek",
"category": "Road bike shorts & bib shorts",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "56746",
"name": "Santini Lidl-Trek Women's Replica Race Shorts",
"price": "200.0",
"brand": "Santini",
"category": "Road bike shorts & bib shorts",
"variant": "bluedark_yellow",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}