if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "MXN",
"impressions": [
{
"id": "47281",
"name": "Slash 9.9 XX AXS Tipo T Gen 6",
"price": "266999.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greendark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "47280",
"name": "Slash 9.9 X0 AXS Tipo T Gen 6",
"price": "239999.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greendark",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "47279",
"name": "Slash 9.8 XT Gen 6",
"price": "172999.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greendark",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}