mirror of
https://gitlab.com/octtspacc/sitoctt
synced 2025-06-05 22:09:20 +02:00
.
This commit is contained in:
13
static/analytics.js
Normal file
13
static/analytics.js
Normal 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() */);
|
||||
}));
|
||||
|
||||
})();
|
Reference in New Issue
Block a user