mirror of https://github.com/jpanther/congo.git
19 lines
800 B
HTML
19 lines
800 B
HTML
{{ if hugo.IsProduction }}
|
|
{{ with .Site.Params.fathomAnalytics.site }}
|
|
{{ if isset $.Site.Params.fathomanalytics "domain" }}
|
|
<script defer src="https://{{ $.Site.Params.fathomanalytics.domain }}/script.js" data-site="{{ . }}"></script>
|
|
{{ else }}
|
|
<script defer src="https://cdn.usefathom.com/script.js" data-site="{{ . }}"></script>
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ if site.Params.plausible.enable }}
|
|
{{ with site.Params.plausible.domain }}
|
|
<script
|
|
defer
|
|
data-domain="{{ . }}"
|
|
data-api="{{ default "https://plausible.io/api/event" site.Params.plausible.event }}"
|
|
src="{{ default "https://plausible.io/js/script.js" site.Params.plausible.script }}"></script>
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ template "_internal/google_analytics.html" . }}
|
|
{{ end }} |