if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "SGD",
"impressions": [
{
"id": "32738",
"name": "Trek Velocis Cycling Bib Shorts",
"price": "230.0",
"brand": "Trek",
"category": "Road bike shorts & bib shorts",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "32742",
"name": "Trek Circuit Cycling Bib Shorts",
"price": "170.0",
"brand": "Trek",
"category": "Road bike shorts & bib shorts",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "32744",
"name": "Trek Circuit Cycling Shorts",
"price": "150.0",
"brand": "Trek",
"category": "Road bike shorts & bib shorts",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "32746",
"name": "Trek Solstice Cycling Shorts",
"price": "90.0",
"brand": "Trek",
"category": "Road bike shorts & bib shorts",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "45332",
"name": "Santini Lidl-Trek Replica Race Bib Shorts",
"price": "230.0",
"brand": "Santini",
"category": "Road bike shorts & bib shorts",
"variant": "bluedark_yellow",
"list": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}