if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "ZAR",
"impressions": [
{
"id": "36266",
"name": "Precaliber 16 Coaster Brake",
"price": "5200.0",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 1
}
]
}
});
} else {
console.log("dataLayer");
}