Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "SGD",
"impressions": [
{
"id": "41674",
"name": "Trek Blendr Saddle Bag",
"price": "100.0",
"brand": "Trek",
"category": "Bike bags",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "44844",
"name": "Trek Blendr Saddle Bag Mount",
"price": "18.0",
"brand": "Trek",
"category": "Bike bags",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "35560",
"name": "Bontrager Adventure Saddle Bag",
"price": "220.0",
"brand": "Bontrager",
"category": "Bike bags",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "30760",
"name": "Bontrager Flat Pack",
"price": "80.0",
"brand": "Bontrager",
"category": "Bike bags",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "25934",
"name": "Bontrager Quick Cleat Assembly",
"price": "10.0",
"brand": "Bontrager",
"category": "Bike bags",
"variant": "black",
"list": "More Options",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}