smolboi/layouts/partials/analytics.html

11 lines
371 B
HTML
Raw Permalink Normal View History

2024-07-09 00:18:11 +00:00
{{ if hugo.IsProduction }}
2024-07-09 02:47:47 +00:00
{{ with site.Params.plausibleAnalytics.domain }}
2024-07-09 00:18:11 +00:00
<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 }}
2024-07-09 02:47:47 +00:00
{{ end }}