if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "34654",
"name": "Maillot para damas Trek Solstice",
"price": "89.99",
"brand": "Trek",
"category": "Road bike jerseys",
"variant": "yellowvisibility",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "35816",
"name": "Maillot para damas Trek Circuit",
"price": "139.99",
"brand": "Trek",
"category": "Road bike jerseys",
"variant": "pinklight",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}