Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "SGD",
"impressions": [
{
"id": "22373",
"name": "Bontrager Comp Multi-Tool",
"price": "25.0",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "30807",
"name": "Bontrager BITS Integrated Multi-Tool",
"price": "60.0",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "07799",
"name": "Bontrager Tire Lever Set",
"price": "7.0",
"brand": "Bontrager",
"category": "Bike tires",
"variant": "red",
"list": "More Options",
"position": 3
}
,
{
"id": "41411",
"name": "Trek Pro BITS Multi-Tool",
"price": "140.0",
"brand": "Trek",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "44751",
"name": "Trek Elite BITS Multi-Tool",
"price": "100.0",
"brand": "Trek",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "More Options",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}