2024-09-04 02:15:55 +02:00
|
|
|
(function(){
|
|
|
|
// TODO should use goatcounter script for full proper handling?
|
|
|
|
|
|
|
|
if (!["sitoctt.octt.eu.org", "http.sitoctt.octt.eu.org"].includes(location.hostname) || !location.search) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
window.addEventListener('load', (function(){
|
2024-09-05 01:50:13 +02:00
|
|
|
var path = (location.pathname + location.search);
|
|
|
|
fetch('https://private-analytics-not-for-public-use.octt.eu.org/sitoctt/count?p=' + path /* + '&rnd=' + Date.now() */)
|
|
|
|
.catch(function(err){
|
2024-09-19 14:29:42 +02:00
|
|
|
console.error(err);
|
2024-09-05 01:50:13 +02:00
|
|
|
fetch('https://sitoctt.goatcounter.com/count?p=' + path);
|
|
|
|
});
|
2024-09-04 02:15:55 +02:00
|
|
|
}));
|
|
|
|
|
|
|
|
})();
|