if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "PLN",
"impressions": [
{
"id": "35867",
"name": "Rama X-Caliber",
"price": "2699.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "greydark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "28470",
"name": "Rama X-Caliber",
"price": "2199.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}