Visión general
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "26592",
"name": "Playera Trek",
"price": "49.99",
"brand": "Trek",
"category": "T-Shirts",
"variant": "greydark",
"list": "More Options",
"position": 1
}
,
{
"id": "33808",
"name": "Playera para damas Trek Ride Trek",
"price": "49.99",
"brand": "Trek",
"category": "T-Shirts",
"variant": "bluelight",
"list": "More Options",
"position": 2
}
,
{
"id": "33805",
"name": "Playera luminosa Monta en bici de Trek",
"price": "49.99",
"brand": "Trek",
"category": "T-Shirts",
"variant": "bluedark",
"list": "More Options",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}