Visión general
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "MXN",
"impressions": [
{
"id": "47225",
"name": "Bolsa de herramientas Trek BITS",
"price": "799.0",
"brand": "Trek",
"category": "Bike bags",
"variant": "grey",
"list": "More Options",
"position": 1
}
,
{
"id": "47226",
"name": "Bolsa de tubos Trek BITS",
"price": "619.0",
"brand": "Trek",
"category": "Bike bags",
"variant": "grey",
"list": "More Options",
"position": 2
}
,
{
"id": "45082",
"name": "Trek Waterproof Buckled NIP Bag",
"price": "313.0",
"brand": "Trek",
"category": "Bike bags",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "34744",
"name": "Bontrager Rapid Pack Hydro",
"price": "3399.0",
"brand": "Bontrager",
"category": "Bike bags",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "14798",
"name": "Bontrager Rapid Pack",
"price": "1689.0",
"brand": "Bontrager",
"category": "Bike bags",
"variant": "black",
"list": "More Options",
"position": 5
}
,
{
"id": "26634",
"name": "Bolsa de Almacenamiento Interno para el Cuadro Bontrager BITS",
"price": "435.0",
"brand": "Bontrager",
"category": "Bike bags",
"variant": "black",
"list": "More Options",
"position": 6
}
,
{
"id": "22453",
"name": "Bontrager 18oz Storage Bottle",
"price": "199.0",
"brand": "Bontrager",
"category": "Bike bags",
"variant": "black_white",
"list": "More Options",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}