if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "SGD",
"impressions": [
{
"id": "37883",
"name": "Trek 2023 Fetch+ 4 Cargo Box Steering Cable Set",
"price": "100.0",
"brand": "Trek",
"category": "Bike tools & maintenance",
"variant": "grey",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "42048",
"name": "Trek Domane+ SLR Seat Tube Cable and Canbus Housing",
"price": "13.0",
"brand": "Trek",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "23371",
"name": "Bontrager Comp Shift Cable",
"price": "8.0",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "grey",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "24745",
"name": "Bontrager Comp MTB Brake Cable",
"price": "8.0",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "grey",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "24744",
"name": "Bontrager Comp Road Brake Cable",
"price": "8.0",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "grey",
"list": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}