Visión general
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "",
"impressions": [
{
"id": "47225",
"name": "Bolsa de herramientas Trek BITS",
"price": "",
"brand": "Trek",
"category": "Bike bags",
"variant": "grey",
"list": "More Options",
"position": 1
}
,
{
"id": "47226",
"name": "Bolsa de tubos Trek BITS",
"price": "",
"brand": "Trek",
"category": "Bike bags",
"variant": "grey",
"list": "More Options",
"position": 2
}
,
{
"id": "34744",
"name": "Bontrager Rapid Pack Hydro",
"price": "",
"brand": "Bontrager",
"category": "Bike bags",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "21794",
"name": "Bolsa Bontrager Pro Flat",
"price": "",
"brand": "Bontrager",
"category": "Bike bags",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "14798",
"name": "Bontrager Rapid Pack",
"price": "",
"brand": "Bontrager",
"category": "Bike bags",
"variant": "greendark",
"list": "More Options",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}