if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "ZAR",
"impressions": [
{
"id": "26816",
"name": "Bontrager XR1 Kids' MTB Tyre",
"price": "275.0",
"brand": "Bontrager",
"category": "Bike tires",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "25874",
"name": "Trek Kids Seatpost Clamp",
"price": "117.0",
"brand": "Trek",
"category": "Bike seatposts & accessories",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "30976",
"name": "Trek Kids' Twist Shift Grips",
"price": "100.0",
"brand": "Trek",
"category": "Bike handlebar grips & tape",
"variant": "pinkvisibility",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "30975",
"name": "Trek Kids' Single Speed Grips",
"price": "100.0",
"brand": "Trek",
"category": "Bike handlebar grips & tape",
"variant": "red",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}