Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "ZAR",
"impressions": [
{
"id": "37895",
"name": "Trek Lock Bumper Set with Bolts",
"price": "300.0",
"brand": "Trek",
"category": "Bike locks",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "41255",
"name": "ABUS Ring Lock 4750XL R & RIB Battery Lock BES3 DT3 T82",
"price": "1200.0",
"brand": "ABUS",
"category": "Bike locks",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "41157",
"name": "ABUS Bosch Smart System T82 Downtube Battery Lock",
"price": "600.0",
"brand": "ABUS",
"category": "E-bike batteries & parts",
"variant": "greylight",
"list": "More Options",
"position": 3
}
,
{
"id": "42051",
"name": "Electra Ring Lock Adapter plates",
"price": "100.0",
"brand": "Electra",
"category": "Bike locks",
"variant": "black",
"list": "More Options",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}