if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "ZAR",
"impressions": [
{
"id": "41441",
"name": "Trek Flare R City Rear Bike Light",
"price": "800.0",
"brand": "Trek",
"category": "Bike lights",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "41416",
"name": "Trek EcoTack Handlebar Tape",
"price": "650.0",
"brand": "Trek",
"category": "Bike handlebar grips & tape",
"variant": "white",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "23110",
"name": "Bontrager Gel Cork Handlebar Tape",
"price": "450.0",
"brand": "Bontrager",
"category": "Bike handlebar grips & tape",
"variant": "red",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "27132",
"name": "Bontrager Road Clipless 6 Degree Pedal Cleat Set",
"price": "300.0",
"brand": "Bontrager",
"category": "Bike pedals",
"variant": "red",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "40457",
"name": "Trek Blendr Fendr",
"price": "300.0",
"brand": "Bontrager",
"category": "Bike fenders & accessories",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "32999",
"name": "Bontrager Road Clipless 9 Degree Pedal Cleat Set",
"price": "300.0",
"brand": "Bontrager",
"category": "Bike pedals",
"variant": "grey",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "45035",
"name": "Trek Voda Flow 769 ml/26 oz Water Bottle",
"price": "300.0",
"brand": "Trek",
"category": "Bike water bottles & cages",
"variant": "bluedark_white",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "45036",
"name": "Trek Voda 769 ml/26 oz Water Bottle",
"price": "190.0",
"brand": "Trek",
"category": "Bike water bottles & cages",
"variant": "white_redlight",
"list": "CATEGORY",
"position": 8
}
,
{
"id": "25254",
"name": "Bontrager Standard Presta Valve Bicycle Tube",
"price": "90.0",
"brand": "Bontrager",
"category": "Bike tubes & tubeless bike tire accessories",
"variant": "black",
"list": "CATEGORY",
"position": 9
}
]
}
});
} else {
console.log("dataLayer");
}