feat: Add Plausible partial

This commit is contained in:
Simon 2022-03-03 09:32:03 +01:00
parent cdb7e47a88
commit c06ff39ffe
1 changed files with 4 additions and 0 deletions

View File

@ -0,0 +1,4 @@
{{ if or (eq hugo.Environment "production") (eq hugo.Environment "staging") }}
<script async defer data-api="/api/event" data-domain="{{ (urls.Parse .Site.BaseURL).Host }}" src="/js/script.js"></script>
<script>window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }</script>
{{ end }}