if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "MXN",
"impressions": [
{
"id": "41348",
"name": "Domane SL 5 Gen 4",
"price": "79999.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "black_grey",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "37417",
"name": "Madone SLR 6 AXS Gen 7",
"price": "187999.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "red",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "35022",
"name": "Émonda SLR 6 AXS",
"price": "182999.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "red",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}