if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "14730",
"name": "Electra Lifestyle Lux Cool Cat Helmet",
"price": "63.99",
"brand": "Electra",
"category": "Bike helmets",
"variant": "pink",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "14514",
"name": "Electra Cool Cat Ringer Fahrradklingel",
"price": "14.99",
"brand": "Electra",
"category": "Bike bells & horns",
"variant": "pink",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}