Visión general
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "MXN",
"impressions": [
{
"id": "11155",
"name": "Adaptador de extremo de barra Bontrager Satellite Plus IsoZone",
"price": "391.0",
"brand": "Bontrager",
"category": "Bike handlebars",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "10311",
"name": "Tapones de manubrio IsoZone de Bontrager",
"price": "64.0",
"brand": "Bontrager",
"category": "Bike handlebars",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "12710",
"name": "Electra Leather Handlebar Streamers",
"price": "25.0",
"brand": "Electra",
"category": "Bike handlebars",
"variant": "white",
"list": "More Options",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}