if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "33836",
"name": "Electra Burger sokken",
"price": "15.29",
"brand": "Electra",
"category": "Cycling socks",
"variant": "tan_red",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "33838",
"name": "Electra Tie Dye sokken",
"price": "15.29",
"brand": "Electra",
"category": "Cycling socks",
"variant": "purple",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}