mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-19 16:05:31 -04:00
testing fathom analytics
This commit is contained in:
@@ -1,16 +1,15 @@
|
||||
{{ if eq hugo.Environment "production" }}<script>
|
||||
var _paq = _paq || [];
|
||||
_paq.push(['setRequestMethod', 'POST']);
|
||||
_paq.push(['setSecureCookie', true]);
|
||||
_paq.push(['trackPageView']);
|
||||
_paq.push(['enableLinkTracking']);
|
||||
(function() {
|
||||
var u='https://stats.jarv.is/';
|
||||
_paq.push(['setTrackerUrl', u+'send']);
|
||||
_paq.push(['setSiteId', '1']);
|
||||
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
|
||||
g.async=true; g.defer=true; g.src=u+'stats.js'; s.parentNode.insertBefore(g,s);
|
||||
})();
|
||||
(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, 'https://fathom.jarv.is/tracker.js', 'fathom');
|
||||
fathom('set', 'siteId', 'DYCXU');
|
||||
fathom('trackPageview');
|
||||
</script>{{ end }}
|
||||
</body>
|
||||
</html>
|
||||
|
@@ -32,7 +32,7 @@
|
||||
<link rel="icon" href="{{ "favicon-32.png" | absURL }}" sizes="32x32">
|
||||
<link rel="icon" href="{{ "favicon-16.png" | absURL }}" sizes="16x16">
|
||||
<link rel="shortcut icon" href="{{ "favicon.ico" | absURL }}">
|
||||
<link rel="dns-prefetch" href="https://stats.jarv.is">
|
||||
<link rel="dns-prefetch" href="https://fathom.jarv.is">
|
||||
<link rel="author" href="{{ "humans.txt" | absURL }}">
|
||||
</head>
|
||||
<body id="{{ .Type }}">
|
Reference in New Issue
Block a user