mirror of
https://github.com/imfing/hextra.git
synced 2025-05-15 14:38:51 -04:00
add support for Umami analytics
This commit is contained in:
parent
741a640b1a
commit
430a25fbf9
@ -36,6 +36,11 @@
|
||||
{{ partial "google-analytics.html" . }}
|
||||
{{- end }}
|
||||
|
||||
<!-- Umami -->
|
||||
{{- if and hugo.IsProduction .Site.Params.umami.serverURL .Site.Params.umami.id }}
|
||||
{{ partial "umami.html" . }}
|
||||
{{- end }}
|
||||
|
||||
|
||||
<script>
|
||||
/* Initialize light/dark mode */
|
||||
|
1
layouts/partials/umami.html
Normal file
1
layouts/partials/umami.html
Normal file
@ -0,0 +1 @@
|
||||
<script async defer src="https://{{ .Site.Params.umami.serverURL }}/{{ .Site.Params.umami.trackerScriptName | default "umami.js" }}" data-website-id="{{ .Site.Params.umami.id }}" ></script>
|
Loading…
x
Reference in New Issue
Block a user