Visión general
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "41409",
"name": "Juego de Pedales Planos Trek Línea Elite",
"price": "74.99",
"brand": "Trek",
"category": "Bike pedals",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "35809",
"name": "Juego de pedales planos Bontrager Line Comp",
"price": "49.99",
"brand": "Bontrager",
"category": "Bike pedals",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "22372",
"name": "Juego de Pedales de Traslados Diarios Bontrager",
"price": "89.99",
"brand": "Bontrager",
"category": "Bike pedals",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "23423",
"name": "Juego de pedales Bontrager Line Elite MTB",
"price": "62.99",
"brand": "Bontrager",
"category": "Bike pedals",
"variant": "black",
"list": "More Options",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}