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": "CATEGORY",
"position": 1
}
,
{
"id": "33806",
"name": "Playera Trek Ride Trek",
"price": "49.99",
"brand": "Trek",
"category": "T-Shirts",
"variant": "bluedark",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "33805",
"name": "Playera luminosa Monta en bici de Trek",
"price": "49.99",
"brand": "Trek",
"category": "T-Shirts",
"variant": "bluedark",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "33808",
"name": "Playera para damas Trek Ride Trek",
"price": "49.99",
"brand": "Trek",
"category": "T-Shirts",
"variant": "bluelight",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}