Visión general
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "MXN",
"impressions": [
{
"id": "36035",
"name": "Casco de Bici Juvenil Trek Solstice MIPS",
"price": "1849.0",
"brand": "Trek",
"category": "Bike helmets",
"variant": "purplelight",
"list": "More Options",
"position": 1
}
,
{
"id": "34609",
"name": "Casco de Bici para Niños Trek Solstice Mips",
"price": "1849.0",
"brand": "Trek",
"category": "Bike helmets",
"variant": "purplelight",
"list": "More Options",
"position": 2
}
,
{
"id": "42200",
"name": "Casco Trek Tyro para Niño Ciclista",
"price": "1459.0",
"brand": "Trek",
"category": "Bike helmets",
"variant": "pinklight_pink",
"list": "More Options",
"position": 3
}
,
{
"id": "36952",
"name": "Casco Trek para Ciclismo Starvos WaveCel",
"price": "2999.0",
"brand": "Trek",
"category": "Bike helmets",
"variant": "white",
"list": "More Options",
"position": 4
}
,
{
"id": "31567",
"name": "Casco para Bicicleta Bontrager Starvos WaveCel",
"price": "2899.0",
"brand": "Bontrager",
"category": "Bike helmets",
"variant": "yellowvisibility",
"list": "More Options",
"position": 5
}
,
{
"id": "31204",
"name": "Casco para Bicicleta Bontrager Tyro Juvenil",
"price": "1459.0",
"brand": "Bontrager",
"category": "Bike helmets",
"variant": "purple_bluelight",
"list": "More Options",
"position": 6
}
,
{
"id": "30485",
"name": "Casco para Bicicleta Bontrager Tyro para Niños",
"price": "1459.0",
"brand": "Bontrager",
"category": "Bike helmets",
"variant": "black_yellowvisibility",
"list": "More Options",
"position": 7
}
,
{
"id": "42203",
"name": "Casco Juvenil para Bicis Trek Tyro",
"price": "1459.0",
"brand": "Trek",
"category": "Bike helmets",
"variant": "pinklight_pink",
"list": "More Options",
"position": 8
}
]
}
});
} else {
console.log("dataLayer");
}