Repository navigation
Commit 95975fc
Add Plausible Analytics
Adds the Plausible tracking script to <head>, configured via
hugo.yaml (params.plausible.domain / script_url) so the domain or a
future self-hosted instance can be changed without touching the
template. Only injected on production builds (hugo.IsProduction) so
local `hugo server` development never sends data to Plausible.
Domain defaults to oursqlfoundation.org (the site's own baseURL) on
Plausible Cloud. No cookie banner needed — Plausible is cookieless.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>1 parent 8b7e493 commit 95975fc
2 files changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
17 | 24 | | |
18 | 25 | | |
19 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
79 | 86 | | |
80 | 87 | | |
81 | 88 | | |
| |||
0 commit comments