Add support for plausible.io (#1)

This commit is contained in:
Jon 2023-03-02 16:12:10 +00:00 committed by GitHub
parent 959421da93
commit d392a19f21
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View file

@ -70,3 +70,8 @@
{{- if .Site.GoogleAnalytics }}
{{ template "_internal/google_analytics.html" . }}
{{- end}}
<!-- Plausible.io -->
{{- if $.Site.Params.plausible }}
<script defer data-domain="{{ .Site.Params.plausible }}" src="https://plausible.io/js/script.js"></script>
{{- end}}