if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "",
"impressions": [
{
"id": "29757",
"name": "Cuadro Ticket DJ",
"price": "",
"brand": "Trek",
"category": "Downhill mountain bikes",
"variant": "greendark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "30495",
"name": "Cuadro Ticket S",
"price": "",
"brand": "Trek",
"category": "Downhill mountain bikes",
"variant": "greendark",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}