Skip to content

fix(docs): collect countries when the zone refuses referrers - #64

Merged
jbouder merged 1 commit into
mainfrom
fix/docs-origins-split
Nov 15, 2026
Merged

jbouder merged 1 commit into
mainfrom
fix/docs-origins-split

Conversation

@jbouder

@jbouder jbouder commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

What changed

  • Referrers and countries are now one Cloudflare query each, separate from traffic. A failure in one keeps the other.
  • When the zone plan refuses a field, the collector records a note and prints one line, instead of an error per site every day.
  • The empty referrer table on the Docs page now says Cloudflare doesn't report referrers on this zone's plan.
  • collect.yml runs git pull --rebase origin main before pushing.
  • README and AGENTS.md updated.

Why

How to test

  • uv run pytest && uv run ruff check . && uv run ruff format --check .
  • cd site && npm run build && npm run test -- --run && npm run check
  • After merge, the push-triggered collect run should write data/docs/countries/*.csv and print docs referrers skipped: .... That run is the first live check, since the queries couldn't be tested locally without a Cloudflare token.

Not in this PR

  • Referrers still need a paid zone plan, or Cloudflare Web Analytics enabled on the docs sites. The pages don't load the beacon today.

🤖 Generated with Claude Code

The nebari.dev zone's Cloudflare plan does not expose clientRefererHost,
so the shared referrers/countries query failed for every site and
neither table got data. Referrers and countries are now one query each.
A field the plan refuses becomes a note instead of a daily error, and
the Docs page says why the referrer table is empty.

collect.yml now rebases onto main before pushing, so a merge during a
run no longer rejects the data commit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

Preview deploy: https://pr-64-nebari-pulse.openteams-account.workers.dev

Built from 072419a22b5dad7ea516de71def7408b760b255d. Redeploys on each push to this PR; removed when the PR closes.

@jbouder
jbouder merged commit bae72f5 into main Nov 15, 2026
4 checks passed
@jbouder
jbouder deleted the fix/docs-origins-split branch November 15, 2026 18:21
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