Skip to content

Fix TrafficAnalytics not working on main domain#148

Merged
noahwhite merged 1 commit intodevelopfrom
feature/fix-traffic-analytics-main-domain
Feb 13, 2026
Merged

Fix TrafficAnalytics not working on main domain#148
noahwhite merged 1 commit intodevelopfrom
feature/fix-traffic-analytics-main-domain

Conversation

@noahwhite
Copy link
Copy Markdown
Owner

@noahwhite noahwhite commented Feb 13, 2026

Summary

  • Add import snippets/TrafficAnalytics to the main {$DOMAIN} block in Caddyfile
  • Analytics requests are sent to the main domain (separationofconcerns.dev), not the admin domain
  • Without this import, /.ghost/analytics/* requests were falling through to Ghost and returning 404
  • Also: Add opentofu/**/userdata/** to workflow path filters so changes to static config files (like Caddyfile) trigger the tofu plan workflow

Test plan

  • Verify CI plan workflow runs for this PR (tests the path filter fix)
  • Deploy and verify analytics requests reach traffic-analytics container
  • Check traffic-analytics logs show incoming requests when browsing the site
  • Verify Ghost Stats dashboard shows page views

Analytics requests go to the main domain (separationofconcerns.dev), not
the admin domain. The TrafficAnalytics snippet must be imported in the
main domain block to proxy /.ghost/analytics/* to traffic-analytics.
@noahwhite noahwhite self-assigned this Feb 13, 2026
@noahwhite noahwhite merged commit 183e8f2 into develop Feb 13, 2026
6 checks passed
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.

1 participant