if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "PLN",
"impressions": [
{
"id": "31487",
"name": "Osłony akumulatora Electra Vale GO! RIB",
"price": "640.0",
"brand": "Electra",
"category": "E-bike batteries & parts",
"variant": "tan",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "34395",
"name": "Osłona akumulatora Electra Townie Path Go!",
"price": "640.0",
"brand": "Electra",
"category": "E-bike batteries & parts",
"variant": "greendark",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "36011",
"name": "Electra Bottom Monostay Plug",
"price": "22.4",
"brand": "Electra",
"category": "E-bike batteries & parts",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "36010",
"name": "Electra Rear Monostay Plug",
"price": "22.4",
"brand": "Electra",
"category": "E-bike batteries & parts",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}