if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "",
"impressions": [
{
"id": "30187",
"name": "Cuadro Stache C",
"price": "",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greydark_greenvisibility",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "29103",
"name": "Cuadro Stache AL",
"price": "",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}