if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "PLN",
"impressions": [
{
"id": "47316",
"name": "Kamizelka rowerowa Rapha Core",
"price": "419.0",
"brand": "Rapha",
"category": "Cycling vests",
"variant": "greendark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "36065",
"name": "Trek Circuit Windshell Cycling Vest",
"price": "279.0",
"brand": "Trek",
"category": "Cycling vests",
"variant": "white",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "47318",
"name": "Kamizelka rowerowa Rapha Brevet",
"price": "649.0",
"brand": "Rapha",
"category": "Cycling vests",
"variant": "bluedark",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}