This commit is contained in:
2024-09-04 02:15:55 +02:00
parent 8a081ca527
commit 56de4209f1
18 changed files with 147 additions and 73 deletions

13
static/analytics.js Normal file
View File

@@ -0,0 +1,13 @@
(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(){
fetch('https://private-analytics-not-for-public-use.octt.eu.org/sitoctt/count?p='
+ location.pathname + location.search /* + '&rnd=' + Date.now() */);
}));
})();