smolboi/layouts/partials/analytics.html
2024-07-08 21:47:47 -05:00

10 lines
371 B
HTML

{{ if hugo.IsProduction }}
{{ with site.Params.plausibleAnalytics.domain }}
<script
defer
data-domain="{{ . }}"
data-api="{{ default "https://plausible.io/api/event" site.Params.plausibleAnalytics.event }}"
src="{{ default "https://plausible.io/js/script.js" site.Params.plausibleAnalytics.script }}"
></script>
{{ end }}
{{ end }}