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": "47224",
"name": "Procaliber 9.6 Gen 3",
"price": "4199.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "greenlight_tealdark",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "40962",
"name": "Marlin 6 Gen 3",
"price": "1599.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "teal_bluedark",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "41642",
"name": "Procaliber 9.6 Gen 2",
"price": "4199.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}