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": "26602",
"name": "Palanca para Bontrager Switch",
"price": "27.99",
"brand": "Bontrager",
"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");
}