Visión general
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "MXN",
"impressions": [
{
"id": "42257",
"name": "Asiento para Bici RSL de Trek",
"price": "6599.0",
"brand": "Trek",
"category": "Bike saddles",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "32224",
"name": "Asiento de Bicicleta Bontrager Verse Pro",
"price": "4999.0",
"brand": "Bontrager",
"category": "Bike saddles",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "44985",
"name": "Asiento Trek Verse Corto Elite",
"price": "3099.0",
"brand": "Trek",
"category": "Bike saddles",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "35552",
"name": "Asiento de Bicicleta Bontrager Verse Elite corto",
"price": "3099.0",
"brand": "Bontrager",
"category": "Bike saddles",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "35554",
"name": "Asiento Bontrager Verse Elite corto de pista",
"price": "3099.0",
"brand": "Bontrager",
"category": "Bike saddles",
"variant": "black",
"list": "More Options",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}