if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "SGD",
"impressions": [
{
"id": "33691",
"name": "Trek 2021 Checkpoint SL Control Center Cover",
"price": "42.0",
"brand": "Trek",
"category": "E-bike controllers & parts",
"variant": "orange",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "33620",
"name": "Trek 2021 Rail Gen 2 Bosch Kiox Display Mount",
"price": "34.0",
"brand": "Trek",
"category": "E-bike controllers & parts",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "32467",
"name": "Trek 2020 Rail 29 Speed Sensor Cable Guide",
"price": "10.0",
"brand": "Trek",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "42183",
"name": "Trek 2023 Rail & Powerfly Speed Sensor Adapter",
"price": "2.0",
"brand": "Trek",
"category": "E-bike controllers & parts",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "37891",
"name": "Trek-Diamant Bosch 750 Smart Speed Sensor Cable",
"price": "80.0",
"brand": "Trek-Diamant",
"category": "E-bike controllers & parts",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "42182",
"name": "Trek-Diamant Speed Sensor Adapter MY23",
"price": "3.0",
"brand": "Trek-Diamant",
"category": "E-bike controllers & parts",
"variant": "black",
"list": "CATEGORY",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}