if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "SGD",
"impressions": [
{
"id": "23276",
"name": "Bontrager Insta-Mount Adapter",
"price": "13.0",
"brand": "Bontrager",
"category": "Bike computers & GPS",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "13113",
"name": "Bontrager Insta-Mount Stem/Handlebar Phone Mount",
"price": "30.0",
"brand": "Bontrager",
"category": "Phone & tablet accessories",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "08298",
"name": "Bontrager DuoTrap Digital Speed/Cadence Sensor",
"price": "100.0",
"brand": "Bontrager",
"category": "Bike computers & GPS",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "11323",
"name": "Bontrager Interchange Digital Combo Sensor",
"price": "100.0",
"brand": "Bontrager",
"category": "Bike computers & GPS",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "12319",
"name": "Bontrager DuoTrap S Digital Sensor",
"price": "100.0",
"brand": "Bontrager",
"category": "Bike computers & GPS",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}