if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "ZAR",
"impressions": [
{
"id": "63403",
"name": "Trek Dual Charger Floor Pump",
"price": "1425.0",
"brand": "Trek",
"category": "Bike pumps & accessories",
"variant": "blue",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "41410",
"name": "Trek Line Pro Flat Pedal Set",
"price": "1900.0",
"brand": "Trek",
"category": "Bike pedals",
"variant": "orange",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "49717",
"name": "Trek Air Rush Electric Pump",
"price": "1700.0",
"brand": "Trek",
"category": "Bike pumps & accessories",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "41409",
"name": "Trek Line Elite Flat Pedal Set",
"price": "1100.0",
"brand": "Trek",
"category": "Bike pedals",
"variant": "orange",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}