Skip to content

Commit

Permalink
Switch to plausible analytics (#235)
Browse files Browse the repository at this point in the history
* Switch to plausible analytics

* Remove now unneeded Google-Token from config
  • Loading branch information
TimoRoth authored Aug 9, 2024
1 parent a225757 commit b14176b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
1 change: 0 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ github_username: OGGM
twitter_username: OGGM_org
project_repository: oggm
#disqus_shortname: oggm
g-analytics: G-LGE881V5V3
#altmetric: true

# Build settings
Expand Down
12 changes: 1 addition & 11 deletions _includes/analytics.html
Original file line number Diff line number Diff line change
@@ -1,11 +1 @@
{% if site.g-analytics %}
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.g-analytics }}"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', '{{ site.g-analytics }}');
</script>
{% endif %}
<script defer data-domain="oggm.org" src="https://plausible.oggm.org/js/script.js"></script>

0 comments on commit b14176b

Please sign in to comment.