mirror of
https://github.com/ascii-boxes/boxes.git
synced 2025-02-28 23:32:15 +01:00
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:
parent
f2939de2cc
commit
fb8c540f5a
2
.gitignore
vendored
2
.gitignore
vendored
@ -2,10 +2,10 @@
|
||||
.project
|
||||
.idea/
|
||||
.jekyll-metadata
|
||||
/.jekyll-cache/
|
||||
*.o
|
||||
*.a
|
||||
_support/
|
||||
idee
|
||||
doc/boxes.1
|
||||
doc/*.tar.gz
|
||||
*.tar.gz
|
||||
|
@ -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
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user