if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "24268",
"name": "Trek Road Alloy 135mm Derailleur Hanger",
"price": "25.0",
"brand": "Trek",
"category": "Bike hangers & dropouts",
"variant": "greylight",
"list": "PRODUCTSEARCH",
"position": 1
}
,
{
"id": "27635",
"name": "Juego de portaejes Trek CX Stranglehold",
"price": "97.99",
"brand": "Trek",
"category": "Bike hangers & dropouts",
"variant": "black",
"list": "PRODUCTSEARCH",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}