Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "SGD",
"impressions": [
{
"id": "14247",
"name": "Bontrager Satellite IsoZone Grip",
"price": "70.0",
"brand": "Bontrager",
"category": "Bike handlebar grips & tape",
"variant": "black_greylight",
"list": "More Options",
"position": 1
}
,
{
"id": "35889",
"name": "Bontrager XR Endurance Comp Recycled Grip Set",
"price": "30.0",
"brand": "Bontrager",
"category": "Bike handlebar grips & tape",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "30975",
"name": "Trek Kids' Single Speed Grips",
"price": "17.0",
"brand": "Trek",
"category": "Bike handlebar grips & tape",
"variant": "red",
"list": "More Options",
"position": 3
}
,
{
"id": "30976",
"name": "Trek Kids' Twist Shift Grips",
"price": "17.0",
"brand": "Trek",
"category": "Bike handlebar grips & tape",
"variant": "pinkvisibility",
"list": "More Options",
"position": 4
}
,
{
"id": "12278",
"name": "Trek Kids' MTB Grips",
"price": "12.0",
"brand": "Trek",
"category": "Bike handlebar grips & tape",
"variant": "black",
"list": "More Options",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}