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