Add Plausible Analytics, replacing Google Analytics - #11
Merged
Merged
Conversation
Adds a privacy-friendly, cookieless analytics beacon driven by a PUBLIC_CF_BEACON_TOKEN build-time env var, wired through CD as a repo secret. GA was never implemented in this Astro rebuild (only present on the current WordPress site), so no GA code needed removal. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Cloudflare Web Analytics onboarding was blocked by a persistent server-side 401 in Cloudflare's dashboard, so switching to Plausible instead. Fixes a markup bug from pasting the Plausible snippet inside the Alpine.js script tag (it was being swallowed as inert text rather than executing), and drops the now-unused PUBLIC_CF_BEACON_TOKEN plumbing from CD and .env.example. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
nlaverdure
marked this pull request as ready for review
July 2, 2026 20:03
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
G-RCJPFKDHNM) was never actually implemented in this Astro rebuild — it only exists on the current WordPress site — so there was no GA code to remove hereCloses #10
Todo
Test plan
npm run buildsucceeds and correctly renders the Plausible script tag in the static HTML