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