if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "SGD",
"impressions": [
{
"id": "41406",
"name": "Trek Kovee Elite Clipless Pedal Set",
"price": "170.0",
"brand": "Trek",
"category": "Bike pedals",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "41407",
"name": "Trek Line Elite Clipless Pedal Set",
"price": "190.0",
"brand": "Trek",
"category": "Bike pedals",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "41405",
"name": "Trek Line Comp Clipless Pedal Set",
"price": "150.0",
"brand": "Trek",
"category": "Bike pedals",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "41404",
"name": "Trek Kovee Comp Clipless Pedal Set",
"price": "130.0",
"brand": "Trek",
"category": "Bike pedals",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "22370",
"name": "Bontrager Comp MTB Pedal Set",
"price": "140.0",
"brand": "Bontrager",
"category": "Bike pedals",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}