if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "35907",
"name": "Electra Slime Lifestyle Helmet",
"price": "25.0",
"brand": "Electra",
"category": "Bike helmets",
"variant": "black_green",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "35906",
"name": "Electra Tutti Frutti Lifestyle Helmet",
"price": "25.0",
"brand": "Electra",
"category": "Bike helmets",
"variant": "pink",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}