Repository navigation
Plausible on www.letsauth.eu via the personal script; bundles under /assets/, www as canonical host - #74
Merged
Conversation
…through the proxy No pageview has arrived since the proxy went live: the site is served on www.letsauth.eu, and the script only reported when the hostname was exactly letsauth.eu (Astro's site), so it never sent anything. Both hosts count now. Pages load the site's personal Plausible script from /r/s.js, forwarded by a new managed edge rule, as on rucksackrebellen.de. Outbound links and file downloads come from the script and follow the Plausible site settings; the init adds json to the download extensions. Pageviews stay with our code (autoCapturePageviews: false), so a prerendered page still counts only once shown. The module and component take neutral names (reach), because bundles are named after them and blocklists match "analytics" in a path. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018sUALNpiVEQ4wUVUpDDY96
Bundled scripts, styles and fonts move from Astro's default /_astro/ to /assets/. www.letsauth.eu is the site's main address, so Astro's site (canonical links, sitemap, Open Graph), the JSON exports' source links, robots.txt, security.txt and the link checker use it. The scanner's User-Agent keeps the apex URL, which still answers. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018sUALNpiVEQ4wUVUpDDY96
Merged
5 tasks done
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.
Requested by Jan · project thread
What this changes
Why nothing arrived since #49: the site is served on
www.letsauth.eu, but the tracking module only reported when the hostname equalledAstro.site(letsauth.eu). It returned early on every real visit, so no/r/e.jsonrequest was ever sent. Both hosts count now.Same setup as rucksackrebellen.de
pa-dijXYLvcgUmFUPtPr7i0G.js) from/r/s.js; a new managed edge rule[repo] Plausible scriptforwards it to plausible.io (cached 1 h). Events still go to/r/e.jsonvia the existing rule.jsonto the download extensions so the exports count. Our own click handling is gone.autoCapturePageviews: false): a page prerendered by speculation rules counts only once shown; bfcache restores and the explorer's in-place toggles count again; 404s send a404event.Neutral paths: bundles are named after their modules (
/_astro/analytics.*.jsbefore), and blocklists match "analytics" in a path. The module and component are nowsrc/lib/reach.tsandReach.astro, and bundles live under/assets/(build.assets) instead of/_astro/.www as canonical host:
siteishttps://www.letsauth.eu, so canonical links, sitemap and Open Graph URLs use www; so do the JSON exports'source, robots.txt, security.txt and the link checker. The scanner's User-Agent keeps the apex URL.The edge-rule sync on the next deploy creates the script rule; no settings change needed. Old
/_astro/files stay in storage (the deploy never deletes), which is harmless.Code checklist
pnpm checkpasses.🤖 Generated with Claude Code
https://claude.ai/code/session_018sUALNpiVEQ4wUVUpDDY96