Visión general
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "30767",
"name": "Trek Precaliber 16 Saddle with Integrated Seatpost",
"price": "34.99",
"brand": "Trek",
"category": "Bike saddles",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "00775",
"name": "Asiento de Bicicleta Bontrager para niños",
"price": "33.99",
"brand": "Bontrager",
"category": "Bike saddles",
"variant": "black",
"list": "More Options",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}