if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "ZAR",
"impressions": [
{
"id": "35322",
"name": "Bontrager Race Crew Cycling Socks",
"price": "300.0",
"brand": "Bontrager",
"category": "Cycling socks",
"variant": "white",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "24826",
"name": "Bontrager Race Crew Cycling Socks",
"price": "250.0",
"brand": "Bontrager",
"category": "Cycling socks",
"variant": "white",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "46109",
"name": "Trek SA Socks",
"price": "190.0",
"brand": "Trek",
"category": "Men's cycling socks",
"variant": "white_black",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}