if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "MXN",
"impressions": [
{
"id": "35003",
"name": "FX 2 Disc Gen 3",
"price": "9799.0",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "28299",
"name": "Verve+ 2 Gen 2",
"price": "43499.0",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "28300",
"name": "Verve+ 2 Lowstep Gen 2",
"price": "43499.0",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "bluedark",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "36823",
"name": "Dual Sport 2 Gen 5",
"price": "12399.0",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "36824",
"name": "Dual Sport 1 Gen 5",
"price": "10899.0",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "red",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "36453",
"name": "Verve 2 Gen 4",
"price": "10599.0",
"brand": "Trek",
"category": "Comfort & recreation bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}