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
}
,
{
"id": "41973",
"name": "Sudadera Trek Acolchonada de Cuello Redondo",
"price": "69.99",
"brand": "Trek",
"category": "Casual sweatshirts & hoodies",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "34754",
"name": "Trek Varsity Crewneck Sweatshirt",
"price": "69.99",
"brand": "Trek",
"category": "Casual sweatshirts & hoodies",
"variant": "grey",
"list": "CATEGORY",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}