First idea of counter script.
This commit is contained in:
parent
eed8b06f6e
commit
e6e2daa71d
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="cs">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Millions</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>We are millions<br>
|
||||
And millions are like one</p>
|
||||
|
||||
<p><a href="">ping</a></p>
|
||||
|
||||
<script src="millions.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,13 @@
|
|||
/* Milions non-tracking web counter/analytics */
|
||||
(function(){
|
||||
// https://github.com/simpleanalytics/scripts/blob/master/src/default.js
|
||||
// https://docs.simpleanalytics.com/what-we-collect
|
||||
// https://docs.simpleanalytics.com/uniques
|
||||
|
||||
console.log('href', document.location.href);
|
||||
console.log('ref', document.referrer);
|
||||
console.log('DNT', "doNotTrack" in navigator && navigator["doNotTrack"] === "1");
|
||||
console.log('innerWidth', window.innerWidth);
|
||||
console.log('UA', navigator.userAgent);
|
||||
|
||||
})('localhost');
|
Loading…
Reference in New Issue