Visión general
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "33673",
"name": "Bontrager Elite Combo Folding Lock",
"price": "109.99",
"brand": "Bontrager",
"category": "Bike locks",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "22568",
"name": "Candado en U Bontrager Elite con Llave y Cable de 4'",
"price": "89.99",
"brand": "Bontrager",
"category": "Bike locks",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "22562",
"name": "Candado de Cable Bontrager Comp con combinación",
"price": "53.99",
"brand": "Bontrager",
"category": "Bike locks",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "22563",
"name": "Candado de Cable Bontrager Comp con llave",
"price": "49.99",
"brand": "Bontrager",
"category": "Bike locks",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "26779",
"name": "Trek RIB Bosch Powertube Lock by ABUS",
"price": "29.99",
"brand": "ABUS",
"category": "Bike locks",
"variant": "greylight",
"list": "More Options",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}