if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "SGD",
"impressions": [
{
"id": "34652",
"name": "Trek Circuit Women's LTD Cycling Jersey",
"price": "130.0",
"brand": "Trek",
"category": "Road bike jerseys",
"variant": "black_white",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "35816",
"name": "Trek Circuit Women's Cycling Jersey",
"price": "130.0",
"brand": "Trek",
"category": "Road bike jerseys",
"variant": "pinklight",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}