if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "ZAR",
"impressions": [
{
"id": "30734",
"name": "Trek Madone 9 Series Brake Stop with Num Holder",
"price": "400.0",
"brand": "Trek",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "30731",
"name": "Trek Madone 9 Series Brake Stop",
"price": "300.0",
"brand": "Trek",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "22441",
"name": "Trek Road Brake/Di2 Housing Stop",
"price": "200.0",
"brand": "Trek",
"category": "Electronic drivetrain",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}