if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "34245",
"name": "Electra EBC 3000 Lifestyle-Fahrradhelm",
"price": "39.99",
"brand": "Electra",
"category": "Bike helmets",
"variant": "grey",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "33613",
"name": "Electra EBC 3000 Handlebar Bag",
"price": "12.5",
"brand": "Electra",
"category": "Bike bags",
"variant": "greylight_white",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}