Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "SGD",
"impressions": [
{
"id": "25044",
"name": "Bontrager Windshell Cycling Balaclava",
"price": "59.99",
"brand": "Bontrager",
"category": "Cycling caps & headwear",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "46738",
"name": "Santini Lidl-Trek Team Podium Hat",
"price": "49.99",
"brand": "Santini",
"category": "Cycling caps & headwear",
"variant": "bluedark_yellow",
"list": "More Options",
"position": 2
}
,
{
"id": "25036",
"name": "Bontrager Windshell Cycling Skull Cap",
"price": "49.99",
"brand": "Bontrager",
"category": "Cycling caps & headwear",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "41238",
"name": "Trek Cotton Cycling Cap",
"price": "39.99",
"brand": "Trek",
"category": "Cycling caps & headwear",
"variant": "yellowvisibility",
"list": "More Options",
"position": 4
}
,
{
"id": "41237",
"name": "Trek UV Sunstop Cycling Skull Cap",
"price": "39.99",
"brand": "Trek",
"category": "Cycling caps & headwear",
"variant": "white",
"list": "More Options",
"position": 5
}
,
{
"id": "25033",
"name": "Bontrager Thermal Cycling Headband",
"price": "29.99",
"brand": "Bontrager",
"category": "Cycling caps & headwear",
"variant": "black",
"list": "More Options",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}