Visión general
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "26600",
"name": "Eje Pasante Delantero Bontrager Switch Lever",
"price": "55.99",
"brand": "Bontrager",
"category": "Bike wheels",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "26601",
"name": "Eje Pasante Trasero Bontrager Switch Lever",
"price": "55.99",
"brand": "Bontrager",
"category": "Bike wheels",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "21973",
"name": "Bloqueo Bontrager Boost 141",
"price": "13.99",
"brand": "Trek",
"category": "Bike wheels",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "10868",
"name": "Formula QR-22 External Cam Skewer",
"price": "13.99",
"brand": "Trek",
"category": "Bike wheels",
"variant": "black",
"list": "More Options",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}