Add Plausible analytics - #38
Conversation
Injects the shared reichlab.io Plausible snippet so this site is tracked in the consolidated reichlab.io Plausible site. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
There was a problem hiding this comment.
This PR adds the shared reichlab.io Plausible snippet to the pkgdown site via template.includes.in_header in _pkgdown.yml (feeding the consolidated reichlab.io Plausible site, pa-DOosb…).
Testing: _pkgdown.yml validated as parseable YAML. This uses the identical template.includes.in_header mechanism as the hubverse pkgdown sites where I confirmed it renders into <head> (e.g. hubValidations, hub-data), so I relied on config validation + that proven mechanism rather than spinning up a full local pkgdown/R build here.
On the failing lint check: it's pre-existing and unrelated to this PR. The only file changed is _pkgdown.yml, and lintr::lint_package() lints R source and vignettes — all of its warnings are in existing files (R/ext.R, R/int.R, R/make_dist_fns.R, R/utils.R, vignettes/distfromq.Rmd) that this PR doesn't touch, so it fails identically on main. The lint cleanup (implicit returns, |> vs %>%) is separate maintenance.
matthewcornell
left a comment
There was a problem hiding this comment.
Approved, but noting failing lint checks.
Adds privacy-friendly Plausible analytics by injecting the shared reichlab.io tracking snippet into
<head>. Part of consolidating all reichlab.io sites under a single Plausible site.🤖 Generated with Claude Code