fathom analytics

This commit is contained in:
2019-05-30 10:08:20 +02:00
parent 425fd1424e
commit c06e603988
2 changed files with 22 additions and 6 deletions

View File

@@ -1,11 +1,27 @@
{{define "analytics"}}{{if not debugMode}}
<!-- Fathom - simple website analytics - https://github.com/usefathom/fathom -->
<script>
(function(f, a, t, h, o, m){
a[h]=a[h]||function(){
(a[h].q=a[h].q||[]).push(arguments)
};
o=f.createElement('script'),
m=f.getElementsByTagName('script')[0];
o.async=1; o.src=t; o.id='fathom-script';
m.parentNode.insertBefore(o,m)
})(document, window, '//fathom.pixeldrain.com/tracker.js', 'fathom');
fathom('set', 'siteId', 'AWHYP');
fathom('trackPageview');
</script>
<!-- / Fathom -->
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-24463738-4"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-24463738-4');
gtag('config', 'UA-24463738-4');
</script>
{{end}}{{end}}

View File

@@ -47,14 +47,14 @@
<h3>For how long will my files be stored?</h3>
<p>
Files will be removed if they have not been viewed for 90 days.
Files will be removed if they have not been viewed for 100 days.
A view is counted when someone visits the file's download page
(pixeldrain.com/u/somefile) or views the file through a list the
file is included in (pixeldrain.com/l/somelist).
</p>
<p>
You cannot delete files yourself. Once a file has been uploaded
to pixeldrain it will stay there for at least 90 days. If you
to pixeldrain it will stay there for at least 100 days. If you
accidentally upload something you shouldn't have, just don't
share the link. The file will expire eventually. File links are
not indexed or published anywhere. As long as you don't share it