if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "SGD",
"impressions": [
{
"id": "36098",
"name": "Trek Fetch+ 2 Family Pack Kit",
"price": "1000.0",
"brand": "Trek",
"category": "Bike racks",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "45259",
"name": "Trek Fetch+ 2 Front Pannier Rack",
"price": "140.0",
"brand": "Trek",
"category": "Bike racks",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "41674",
"name": "Trek Blendr Saddle Bag",
"price": "100.0",
"brand": "Trek",
"category": "Bike bags",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "36099",
"name": "Trek Fetch+ 2 Front Pannier and Rack Kit",
"price": "389.0",
"brand": "Trek",
"category": "Bike baskets",
"variant": "red",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "40145",
"name": "Trek Fetch+ 2 Mudguard Set",
"price": "125.0",
"brand": "Trek",
"category": "Bike fenders & accessories",
"variant": "red",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "24663",
"name": "Bontrager Blendr Saddle Accessory Mount",
"price": "10.0",
"brand": "Bontrager",
"category": "Bike lights",
"variant": "black_grey",
"list": "CATEGORY",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}