if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "ZAR",
"impressions": [
{
"id": "37586",
"name": "Santini Trek-Segafredo Men's Team Cycling Socks",
"price": "200.0",
"brand": "Santini",
"category": "Cycling socks",
"variant": "white_red",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "35322",
"name": "Bontrager Race Crew Cycling Socks",
"price": "100.0",
"brand": "Bontrager",
"category": "Cycling socks",
"variant": "white",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "24826",
"name": "Bontrager Race Crew Cycling Socks",
"price": "100.0",
"brand": "Bontrager",
"category": "Cycling socks",
"variant": "white",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}