Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "ZAR",
"impressions": [
{
"id": "31740",
"name": "Bontrager Urban 31.8 Carbon Cruiser Handlebar",
"price": "2300.0",
"brand": "Bontrager",
"category": "Bike handlebars",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "22200",
"name": "Bontrager Satellite 31.8 Matte Alloy Cruiser Handlebar",
"price": "400.0",
"brand": "Bontrager",
"category": "Bike handlebars",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "35280",
"name": "Bontrager Satellite 31.8 Polished Alloy Cruiser Handlebar",
"price": "400.0",
"brand": "Bontrager",
"category": "Bike handlebars",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "35281",
"name": "Bontrager Capital 31.8 Polished Alloy Cruiser Handlebar",
"price": "200.0",
"brand": "Bontrager",
"category": "Bike handlebars",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "36170",
"name": "Electra Vale Sandblasted Handlebar",
"price": "500.0",
"brand": "Electra",
"category": "Bike handlebars",
"variant": "greylight",
"list": "More Options",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}