if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "SGD",
"impressions": [
{
"id": "36569",
"name": "Trek Race Crew Merino Wool Cycling Socks",
"price": "30.0",
"brand": "Trek",
"category": "Men's cycling socks",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "36534",
"name": "Trek Race Crew Cycling Socks",
"price": "30.0",
"brand": "Trek",
"category": "Men's cycling socks",
"variant": "red",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "36533",
"name": "Trek Race Quarter Cycling Socks",
"price": "30.0",
"brand": "Trek",
"category": "Men's cycling socks",
"variant": "pinklight",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "46741",
"name": "Santini Lidl-Trek Team Cycling Socks",
"price": "30.0",
"brand": "Santini",
"category": "Men's cycling socks",
"variant": "white",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}