Visión general
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "MXN",
"impressions": [
{
"id": "23383",
"name": "Enjuague de bici Bontrager",
"price": "354.0",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "red",
"list": "More Options",
"position": 1
}
,
{
"id": "23386",
"name": "Grasa Bontrager",
"price": "275.0",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "32120",
"name": "Tektro Hydraulic Brake Fluid",
"price": "232.0",
"brand": "Trek",
"category": "Bike tools & maintenance",
"variant": "red",
"list": "More Options",
"position": 3
}
,
{
"id": "26798",
"name": "Bontrager Grease Gun",
"price": "905.0",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "greylight",
"list": "More Options",
"position": 4
}
,
{
"id": "23384",
"name": "Pulimento de bici Bontrager",
"price": "365.0",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "white",
"list": "More Options",
"position": 5
}
,
{
"id": "23381",
"name": "Lubricante de Cadenas Bontrager",
"price": "235.0",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "More Options",
"position": 6
}
,
{
"id": "32664",
"name": "Loctite Hysol 9460 Epoxy Adhesive - 50ml",
"price": "1167.0",
"brand": "Loctite",
"category": "Bike tools & maintenance",
"variant": "white",
"list": "More Options",
"position": 7
}
,
{
"id": "32461",
"name": "Trek Supercaliber Strut Service Lubricant 10 Weight",
"price": "681.0",
"brand": "Maxima",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "More Options",
"position": 8
}
]
}
});
} else {
console.log("dataLayer");
}