if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "ZAR",
"impressions": [
{
"id": "35809",
"name": "Bontrager Line Comp Flat Pedal Set",
"price": "500.0",
"brand": "Bontrager",
"category": "Bike pedals",
"variant": "orange",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "47140",
"name": "Trek Elite Recycled Water Bottle Cage",
"price": "300.0",
"brand": "Trek",
"category": "Bike water bottles & cages",
"variant": "red",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "37370",
"name": "Trek Voda Flow 621 ml/21 oz Water Bottle",
"price": "300.0",
"brand": "Trek",
"category": "Bike water bottles & cages",
"variant": "white_black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "22373",
"name": "Bontrager Comp Multi-Tool",
"price": "240.0",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
,
{
"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": 5
}
,
{
"id": "37375",
"name": "Trek Voda 621 ml/21 oz Water Bottle",
"price": "175.0",
"brand": "Trek",
"category": "Bike water bottles & cages",
"variant": "white",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "25255",
"name": "Bontrager Standard Schrader Valve Bicycle Tube",
"price": "90.0",
"brand": "Bontrager",
"category": "Bike tubes & tubeless bike tire accessories",
"variant": "black",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "40635",
"name": "Trek Range Boost Mounting Kit",
"price": "7200.0",
"brand": "Trek",
"category": "E-bike batteries & parts",
"variant": "black",
"list": "CATEGORY",
"position": 8
}
]
}
});
} else {
console.log("dataLayer");
}