Skip to content

Add Plausible Analytics, replacing Google Analytics - #11

Merged
nlaverdure merged 2 commits into
mainfrom
add-cloudflare-web-analytics
Jul 2, 2026
Merged

nlaverdure merged 2 commits into
mainfrom
add-cloudflare-web-analytics

Conversation

@nlaverdure

@nlaverdure nlaverdure commented Jul 1, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Adds Plausible Analytics (privacy-friendly, cookieless) via the standard embed snippet in the base layout
  • GA (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 here
  • Originally attempted Cloudflare Web Analytics, but its dashboard onboarding flow was blocked by a persistent server-side 401 error, so switched to Plausible instead

Closes #10

Todo

  • Verify analytics data shows up in the Plausible dashboard after a deploy
  • Apply the same pattern to iifound.org (separate repo, same static-build-to-GitHub-Pages setup)

Test plan

  • npm run build succeeds and correctly renders the Plausible script tag in the static HTML
  • Confirm real traffic shows up in Plausible after merging to main

nlaverdure and others added 2 commits July 1, 2026 10:19
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 nlaverdure changed the title Add Cloudflare Web Analytics, replacing Google Analytics Add Plausible Analytics, replacing Google Analytics Jul 2, 2026
@nlaverdure
nlaverdure marked this pull request as ready for review July 2, 2026 20:03
@nlaverdure
nlaverdure merged commit 7ceae38 into main Jul 2, 2026
1 check passed
@nlaverdure
nlaverdure deleted the add-cloudflare-web-analytics branch July 2, 2026 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Decide on analytics: wire Google Analytics or switch to privacy-friendly alternative

1 participant