Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "ZAR",
"impressions": [
{
"id": "23381",
"name": "Bontrager Chain Lube",
"price": "200.0",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "32664",
"name": "Loctite Hysol 9460 Epoxy Adhesive - 50ml",
"price": "1700.0",
"brand": "Loctite",
"category": "Bike tools & maintenance",
"variant": "white",
"list": "More Options",
"position": 2
}
,
{
"id": "32461",
"name": "Trek Supercaliber Strut Service Lubricant 10 Weight",
"price": "500.0",
"brand": "Maxima",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "More Options",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}