if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "PLN",
"impressions": [
{
"id": "24533",
"name": "Loft 7i EQ z ramą w wersji damskiej",
"price": "2199.0",
"brand": "Electra",
"category": "Loft",
"variant": "blue",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "17003",
"name": "Loft 7i z ramą w wersji damskiej",
"price": "1999.0",
"brand": "Electra",
"category": "Loft",
"variant": "blue",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "24531",
"name": "Loft 7D EQ z ramą w wersji damskiej",
"price": "1799.0",
"brand": "Electra",
"category": "Loft",
"variant": "white",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "16810",
"name": "Loft 7D z ramą w wersji damskiej",
"price": "1699.0",
"brand": "Electra",
"category": "Loft",
"variant": "red",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}