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