if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "14564",
"name": "Electra Sticker Pack",
"price": "6.99",
"brand": "Electra",
"category": "Cycling gifts & fun stuff",
"variant": "white",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "34014",
"name": "Electra Lenker-Streamer",
"price": "5.0",
"brand": "Electra",
"category": "Bike handlebars",
"variant": "pinkdark_reflective",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}