if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "DKK",
"impressions": [
{
"id": "12801",
"name": "Electra-enkeltklinge til udelt kranksæt",
"price": "249.0",
"brand": "Electra",
"category": "Bike cranks & chainrings",
"variant": "greylight",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "32042",
"name": "Klinger til Electra Hydrive-elcykler",
"price": "209.0",
"brand": "Electra",
"category": "E-bike drivetrain parts",
"variant": "greylight",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}