if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "MXN",
"impressions": [
{
"id": "41426",
"name": "Émonda ALR 5",
"price": "44499.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "red_reddark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "41513",
"name": "Checkpoint ALR 4",
"price": "38999.0",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "41607",
"name": "Domane AL 4 Gen 4",
"price": "37999.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "white",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "33037",
"name": "Domane AL 2 Rim",
"price": "18999.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "blue_black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "37299",
"name": "Cuadro Émonda ALR Disc",
"price": "27299.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "white",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "33078",
"name": "Émonda ALR 4",
"price": "29799.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}