Skip to content

Commit

Permalink
migrate GA => plausible
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl committed Jun 6, 2024
1 parent ff9b59d commit dc13b9a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
1 change: 0 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
theme: jekyll-theme-hacker
lang: en-GB
google_analytics: G-MERR30FCLL
permalink: pretty
image_host: https://img.cdcl.ml
comments: >
Expand Down
11 changes: 1 addition & 10 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,6 @@ <h2>{{ page.description | default: site.github.project_tagline }}</h2>
</section>
</div>

{% if site.google_analytics %}
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', '{{ site.google_analytics }}', 'auto');
ga('send', 'pageview');
</script>
{% endif %}
<script defer data-domain="cdcl.ml" src="https://plausible.cdcl.ml/js/script.js"></script>
</body>
</html>

0 comments on commit dc13b9a

Please sign in to comment.