if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "MXN",
"impressions": [
{
"id": "35040",
"name": "Zapatos de ciclismo Trek RSL Road",
"price": "9999.0",
"brand": "Trek",
"category": "Road bike shoes",
"variant": "white",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "34133",
"name": "Zapatos de ciclismo Trek Velocis Road",
"price": "7299.0",
"brand": "Trek",
"category": "Road bike shoes",
"variant": "red",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}