Switch from Google Analytics to plausible.io

- privacy-friendly, no personal information is collected
- no cookies, so no cookie consent required
- faster loading, smaller script
This commit is contained in:
Thomas Jensen 2021-04-30 20:39:59 +02:00
parent f2939de2cc
commit fb8c540f5a
No known key found for this signature in database
GPG Key ID: A4ACEE270D0FB7DB
4 changed files with 7 additions and 26 deletions

2
.gitignore vendored
View File

@ -2,10 +2,10 @@
.project
.idea/
.jekyll-metadata
/.jekyll-cache/
*.o
*.a
_support/
idee
doc/boxes.1
doc/*.tar.gz
*.tar.gz

View File

@ -21,7 +21,7 @@ baseurl: ''
github: 'ascii-boxes/boxes'
# Set this to your UA-# value, or '' to disable the block completely
gaaccount: 'UA-23698164-5'
gaaccount: ''
# Set this to your disqus shortname to enable comments. Note that the 'comments'
# setting below must also be true. Individual posts can override 'comments' to

View File

@ -1,10 +1,5 @@
<script async defer data-domain="boxes.thomasjensen.com" src="https://plausible.io/js/plausible.js"></script>
{% if site.gaaccount != '' %}
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.gaaccount }}"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '{{ site.gaaccount }}', {'anonymize_ip': true});
</script>
{% endif %}
{%- comment -%}
Privacy-friendly analytics with plausible.io - no personal information is collected, no cookies
{%- endcomment -%}
<script async defer data-domain="boxes.thomasjensen.com" src="https://stats.thomasjensen.com/js/plausible.js"></script>

View File

@ -34,20 +34,6 @@
<link href="{{ site.baseurl }}/css/bootstrap.min.css" rel="stylesheet">
<link href="{{ site.baseurl }}/css/theme.css" rel="stylesheet">
<link href="{{ site.baseurl }}/css/boxes.css" rel="stylesheet">
<!-- Cookie Consent -->
<link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.6/cookieconsent.min.css" />
<script src="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.6/cookieconsent.min.js"></script>
<script>
window.addEventListener("load", function(){
window.cookieconsent.initialise({
"palette": {
"popup": { "background": "#252e39" },
"button": { "background": "#14a7d0" }
}
});
});
</script>
</head>
<body>