if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "",
"impressions": [
{
"id": "23053",
"name": "Sombrero pescador Trek Pit",
"price": "",
"brand": "Trek",
"category": "Casual caps & hats",
"variant": "white",
"list": "CATEGORY",
"position": 1
}
]
}
});
} else {
console.log("dataLayer");
}