if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "MXN",
"impressions": [
{
"id": "35070",
"name": "Top Fuel 7 Gen 3",
"price": "49499.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "red",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "35118",
"name": "Roscoe 9",
"price": "43499.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "tan_greendark",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "33073",
"name": "Fuel EX 5 Gen 5",
"price": "40599.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "grey_orangelight",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "36969",
"name": "Marlin 8 Gen 3",
"price": "23199.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "red",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "34587",
"name": "Marlin 5 Gen 2",
"price": "11199.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "red",
"list": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}