if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "SGD",
"impressions": [
{
"id": "34133",
"name": "Trek Velocis Road Cycling Shoes",
"price": "450.0",
"brand": "Trek",
"category": "Road bike shoes",
"variant": "red",
"list": "PRODUCTSEARCH",
"position": 1
}
,
{
"id": "32738",
"name": "Trek Velocis Cycling Bib Shorts",
"price": "230.0",
"brand": "Trek",
"category": "Road bike shorts & bib shorts",
"variant": "black",
"list": "PRODUCTSEARCH",
"position": 2
}
,
{
"id": "34588",
"name": "Trek Velocis Mips Road Bike Helmet",
"price": "400.0",
"brand": "Trek",
"category": "Bike helmets",
"variant": "white",
"list": "PRODUCTSEARCH",
"position": 3
}
,
{
"id": "44093",
"name": "Trek Velocis Mips Asia Fit Helmet",
"price": "400.0",
"brand": "Trek",
"category": "Bike helmets",
"variant": "white",
"list": "PRODUCTSEARCH",
"position": 4
}
,
{
"id": "44113",
"name": "Trek Velocis Mips Helmet Fit Pad",
"price": "53.0",
"brand": "Trek",
"category": "Bike helmets",
"variant": "red",
"list": "PRODUCTSEARCH",
"position": 5
}
,
{
"id": "44112",
"name": "Trek Velocis Mips Helmet Fit System",
"price": "42.0",
"brand": "Trek",
"category": "Bike helmets",
"variant": "black",
"list": "PRODUCTSEARCH",
"position": 6
}
,
{
"id": "37096",
"name": "Trek Velocis Dual Foam Unisex Cycling Glove",
"price": "80.0",
"brand": "Trek",
"category": "Fingerless cycling gloves",
"variant": "black",
"list": "PRODUCTSEARCH",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}