Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "SGD",
"impressions": [
{
"id": "21854",
"name": "Bontrager Dual Charger Floor Pump",
"price": "100.0",
"brand": "Bontrager",
"category": "Bike pumps & accessories",
"variant": "red",
"list": "More Options",
"position": 1
}
,
{
"id": "28009",
"name": "Bontrager Shock Pump",
"price": "60.0",
"brand": "Bontrager",
"category": "Bike pumps & accessories",
"variant": "black_grey",
"list": "More Options",
"position": 2
}
,
{
"id": "13857",
"name": "Bontrager Air Support HP Pro S Road Pump",
"price": "70.0",
"brand": "Bontrager",
"category": "Bike pumps & accessories",
"variant": "greylight",
"list": "More Options",
"position": 3
}
,
{
"id": "13856",
"name": "Bontrager Air Support HP S Road Pump",
"price": "40.0",
"brand": "Bontrager",
"category": "Bike pumps & accessories",
"variant": "black_greylight",
"list": "More Options",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}