if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "ZAR",
"impressions": [
{
"id": "36061",
"name": "Trek Circuit Softshell Cycling Jacket",
"price": "2400.0",
"brand": "Trek",
"category": "Cycling jackets",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "36066",
"name": "Trek Circuit Windshell Cycling Jacket",
"price": "1900.0",
"brand": "Trek",
"category": "Cycling jackets",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "36065",
"name": "Trek Circuit Windshell Cycling Vest",
"price": "1500.0",
"brand": "Trek",
"category": "Cycling vests",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "30938",
"name": "Bontrager Circuit Cycling Rain Jacket",
"price": "2000.0",
"brand": "Bontrager",
"category": "Cycling jackets",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "30940",
"name": "Bontrager Circuit Cycling Wind Jacket",
"price": "1450.0",
"brand": "Bontrager",
"category": "Cycling jackets",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}