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