if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "PLN",
"impressions": [
{
"id": "42283",
"name": "Electra Cable Routing Grommet",
"price": "17.4",
"brand": "Electra",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "41770",
"name": "Bontrager-Electra M3 Button Head Bolt",
"price": "4.9",
"brand": "Bontrager-Electra",
"category": "Bike frame parts",
"variant": "greylight",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}