if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "PLN",
"impressions": [
{
"id": "37509",
"name": "Rękawiczki rowerowe męskie Santini Trek-Segafredo",
"price": "97.0",
"brand": "Santini",
"category": "Fingerless cycling gloves",
"variant": "red",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "22489",
"name": "Rękawiczki rowerowe dla dzieci Bontrager",
"price": "50.0",
"brand": "Bontrager",
"category": "Fingerless cycling gloves",
"variant": "blue_black",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}