if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "SGD",
"impressions": [
{
"id": "36265",
"name": "Precaliber 12",
"price": "349.0",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "red",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "26793",
"name": "Precaliber 12",
"price": "349.0",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "26794",
"name": "Precaliber 12",
"price": "349.0",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "pinkvisibility",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}