if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "MXN",
"impressions": [
{
"id": "45149",
"name": "Trek Domane Gen4 Seatpost Wedge Bolt",
"price": "52.0",
"brand": "Trek",
"category": "Bike seatposts & accessories",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "32429",
"name": "Trek Madone SLR Seatpost Reflector Mounting Bolt",
"price": "45.0",
"brand": "Trek",
"category": "Bike seatposts & accessories",
"variant": "greylight",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "42264",
"name": "Trek-Diamant Ergotec PM-705N 90-110kg Suspension Seatpost",
"price": "3950.0",
"brand": "Trek-Diamant",
"category": "Bike seatposts & accessories",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}