if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "ZAR",
"impressions": [
{
"id": "24278",
"name": "Fisher CX Sliding Dropouts and Hangers",
"price": "261.0",
"brand": "Gary Fisher",
"category": "Bike hangers & dropouts",
"variant": "greylight",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "35224",
"name": "Trek 2021 Allant+/Diamant Zouma+ Non-Driveside Dropout",
"price": "200.0",
"brand": "Trek-Diamant",
"category": "Bike hangers & dropouts",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "35223",
"name": "Trek 2021 Allant+/Diamant Zouma+ Driveside Dropout",
"price": "200.0",
"brand": "Trek-Diamant",
"category": "Bike hangers & dropouts",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "36782",
"name": "Trek-Diamant M4x0.7x14mm Hanger Fastener",
"price": "100.0",
"brand": "Trek-Diamant",
"category": "Bike hangers & dropouts",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}