if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "12801",
"name": "Monocorona Electra per pedivella a 1 elemento",
"price": "34.99",
"brand": "Electra",
"category": "Bike cranks & chainrings",
"variant": "greylight",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "32042",
"name": "Corone per e-bike Electra Hydrive",
"price": "29.99",
"brand": "Electra",
"category": "E-bike drivetrain parts",
"variant": "greylight",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}