if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "ZAR",
"impressions": [
{
"id": "36268",
"name": "Precaliber 20 7-Speed",
"price": "6000.0",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "greydark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "36266",
"name": "Precaliber 16 Coaster Brake",
"price": "5200.0",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "36265",
"name": "Precaliber 12",
"price": "5100.0",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "red",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "36965",
"name": "Precaliber 24 8-speed",
"price": "6200.0",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "greylight",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}