if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "ZAR",
"impressions": [
{
"id": "34650",
"name": "Trek Circuit LTD Cycling Jersey",
"price": "1500.0",
"brand": "Trek",
"category": "Road bike jerseys",
"variant": "greydark_black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "48295",
"name": "Trek Men's Elite Jersey",
"price": "1999.0",
"brand": "Trek",
"category": "Road bike jerseys",
"variant": "grey_red",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "48293",
"name": "Trek Men's Race Fit Jersey",
"price": "1499.0",
"brand": "Trek",
"category": "Road bike jerseys",
"variant": "green",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "41509",
"name": "Santini Trek-Segafredo Men's TDF Replica Cycling Jersey",
"price": "2500.0",
"brand": "Santini",
"category": "Road bike jerseys",
"variant": "bluedark",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "34846",
"name": "Santini Trek Factory Racing Men's XC Team Replica Cycling Jersey",
"price": "2500.0",
"brand": "Santini",
"category": "Road bike jerseys",
"variant": "bluedark_bluelight",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "44136",
"name": "Santini Trek Factory Racing Men’s Team Replica Cycling Jersey",
"price": "2500.0",
"brand": "Santini",
"category": "Mountain bike jerseys",
"variant": "bluedark",
"list": "CATEGORY",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}