if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "",
"impressions": [
{
"id": "35664",
"name": "Cuadro Crockett Disco",
"price": "",
"brand": "Trek",
"category": "Cyclocross bikes",
"variant": "red_tealdark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "33321",
"name": "Crockett 5 Disc",
"price": "",
"brand": "Trek",
"category": "Cyclocross bikes",
"variant": "bluedark_tealdark",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}