The lengthy <img>
tag in the index.html contains a simple tracking application that 1% of the time pings a remote server which in turn removes additional data that would help with de-anonymizing, such as the URL and the exact timestamp, before storing the ping. The parameters recorded are
l
document.locationr
document.referrerp
partner, in this example Tickaroo_d
sample rate. Only one in_d
pings (selected randomly) will get sent. In other words:Date.now() % _d
has to be 0, otherwise the ping does not get sent.
Please also see https://dataless.dpa-prototype.de
Another example: To track every outgoing click of a page, you could include this <img>
tag somewhere in the body.
<img style="width: 1px; height: 1px; visibility:hidden;" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH+EUNyZWF0ZWQgd2l0aCBHSU1QACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" data-src="https://dataless.dpa-prototype.de/pixel.gif" id="dataless" />
Afterwards, you could just install an event handler to target all the clicks on <a>
tags, like so
function ping_dataless(element, p) {
let s=element.getAttribute('data-src');
if (s) {
element.setAttribute('src',
s+'?p=rsslinamo&r='+encodeURIComponent(document.referrer)+'&l='
+encodeURIComponent(document.location)+'&c='+encodeURIComponent(p));
}
};
document.addEventListener("click", function(event) {
let t = event.target;
if (t.tagName === "A") {
ping_dataless(document.getElementById("dataless"), t.getAttribute("href"));
};
},
useCapture=true);