window.dataDan = window.dataDan || []; function pushDan(pushObj) { if (pushObj === undefined) { return } if (pushObj === null) { return } if (pushObj.Pushed === true) { return } if (pushObj.EventType === undefined) { return } try { pushObj.SID = "5e772b2f-9b5d-71c4-a562-cb55b75e09bf"; pushObj.AccountKey = "80852da0-aca5-491b-80ca-5e96e4ea358e"; pushObj.Url = window.location.href; pushObj.UA = navigator.userAgent; pushObj.W = window.innerWidth; pushObj.H = window.innerHeight; fetch("https://dan.dansk.de/dan/push", { method: "POST", body: JSON.stringify(pushObj), headers: { "content-type": "application/json" } }).then(function (res) { if (res.ok) { pushObj.Pushed = true; res.text(); } else { } return true }); } catch { } } (function () { if (!("Proxy" in window)) { return } var _dataDanInternal = []; var _dataDanProxy = new Proxy(_dataDanInternal, { deleteProperty: function (target, property) { return true }, set: function (target, property, value, receiver) { target[property] = value; if (property !== "length") { pushDan(value) } return true } }); window.dataDan.forEach(function (item) { _dataDanProxy.push(item) }); window.dataDan = _dataDanProxy; })(); dataDan.push({ "EventType": "PageView", "Ref": document.referrer });