if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "SGD",
"impressions": [
{
"id": "46738",
"name": "Santini Lidl-Trek Team Podium Hat",
"price": "50.0",
"brand": "Santini",
"category": "Cycling caps & headwear",
"variant": "bluedark_yellow",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "41237",
"name": "Trek UV Sunstop Cycling Skull Cap",
"price": "40.0",
"brand": "Trek",
"category": "Cycling caps & headwear",
"variant": "white",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "46737",
"name": "Santini Lidl-Trek Team Replica Cycling Cap",
"price": "30.0",
"brand": "Santini",
"category": "Cycling caps & headwear",
"variant": "bluedark_yellow",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}