if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "MXN",
"impressions": [
{
"id": "36732",
"name": "Slash 9.8 XT Gen 5",
"price": "85499.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 1
}
]
}
});
} else {
console.log("dataLayer");
}