add support for Plausible Analytics

This commit is contained in:
Nimrod Gutman
2020-07-17 12:15:40 +03:00
parent f787a4e5ad
commit 3807bf5915
3 changed files with 9 additions and 0 deletions

View File

@@ -19,4 +19,9 @@
</script>
{{- dict "Source" ($analytics.fathom.server | default "cdn.usefathom.com" | printf "https://%v/tracker.js") "Async" true "Attr" "id=fathom-script" | partial "plugin/script.html" -}}
{{- end -}}
{{- /* Plausible Analytics */ -}}
{{- with $analytics.plausible.dataDomain -}}
<script async defer data-domain="{{ . }}" src="https://plausible.io/js/plausible.js"></script>
{{- end -}}
{{- end -}}