if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "SGD",
"impressions": [
{
"id": "40773",
"name": "Marlin 5 Gen 3",
"price": "1199.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "purple_black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "46143",
"name": "Top Fuel 8 Gen 4",
"price": "5499.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greenlight",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "41615",
"name": "Procaliber 6",
"price": "2199.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "red",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "40962",
"name": "Marlin 6 Gen 3",
"price": "1599.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "teal_bluedark",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}