Add Plausible Analytics tracking
deploy / deploy (push) Successful in 11s

Wires the site up to the newly-deployed self-hosted Plausible instance
at plausible.reground.org, gated behind hugo.IsProduction so local dev
builds never send events.
This commit is contained in:
2026-08-21 13:23:58 -04:00
parent 1d7635a1ce
commit 344dc4719b
3 changed files with 7 additions and 0 deletions
+1
View File
@@ -13,6 +13,7 @@ disableKinds = ["taxonomy", "term"]
description = "DevOps consulting, ghostwriting, and helping fiction authors find their right readers" description = "DevOps consulting, ghostwriting, and helping fiction authors find their right readers"
author = "Will Estes" author = "Will Estes"
eec_base_url = "https://eec.reground.org" eec_base_url = "https://eec.reground.org"
plausible_domain = "reground.org"
# [[menu.main]] # [[menu.main]]
# name = "Courses" # name = "Courses"
+1
View File
@@ -15,6 +15,7 @@
{{ else }} {{ else }}
<link rel="stylesheet" href="{{ $css.RelPermalink }}"> <link rel="stylesheet" href="{{ $css.RelPermalink }}">
{{ end }} {{ end }}
{{ partial "head-analytics.html" . }}
</head> </head>
<body> <body>
<a class="skip-link" href="#main-content">Skip to content</a> <a class="skip-link" href="#main-content">Skip to content</a>
+5
View File
@@ -0,0 +1,5 @@
{{ if hugo.IsProduction }}
{{ with .Site.Params.plausible_domain }}
<script defer data-domain="{{ . }}" src="https://plausible.reground.org/js/script.js"></script>
{{ end }}
{{ end }}