Skip to content

fix(analytics): send Cloudflare beacons from the browser - #629

Merged
harlan-zw merged 1 commit into
mainfrom
fix/analytics-beacon-direct
Oct 12, 2026
Merged

harlan-zw merged 1 commit into
mainfrom
fix/analytics-beacon-direct

Conversation

@harlan-zw

Copy link
Copy Markdown
Collaborator

🔗 Linked issue

❓ Type of change

  • 📖 Documentation
  • 🐞 Bug fix
  • 👌 Enhancement
  • ✨ New feature
  • 🧹 Chore
  • ⚠️ Breaking change

📚 Description

Browser analytics almost disappeared after events began passing through the Worker proxy. Successful page requests continued.

Disable the Cloudflare Web Analytics proxy while keeping the beacon bundled. Events now go directly from browsers to Cloudflare. Cloudflare documents that RUM cannot collect Worker subrequests.

🤖 AI disclosure: Harlan Agent Kit modified this description. My AI open-source policy.

@harlan-github-agent harlan-github-agent Bot added harlan-agent-running An Agent holds a Task on this issue or pull request right now. harlan-agent-review-required Pull request triage requires an adversarial Review for this head commit. labels Oct 12, 2026
@harlan-zw harlan-zw added the harlan-agent-review Pull request triage requires an adversarial Review. Adding this label manually always forces one. label Oct 12, 2026
@harlan-github-agent

harlan-github-agent Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

🤖 MERGED

Harlan Agent Kit posted this automated review. It is not Harlan's personal review or approval. AI open source policy. Last updated: 2026-10-12 11:14 UTC.

GitHub merged this pull request.

No material findings were recorded.

0d1c3349-dd81-45f9-b096-a921ef670828

@harlan-github-agent harlan-github-agent Bot removed the harlan-agent-review Pull request triage requires an adversarial Review. Adding this label manually always forces one. label Oct 12, 2026
@harlan-zw

harlan-zw commented Oct 12, 2026 •

Copy link
Copy Markdown
Collaborator Author

🤖 Agent verification by Codex:

Loaded the production build's bundled beacon in a headless browser. Initial load and navigation sent three requests directly to https://cloudflareinsights.com/cdn-cgi/rum.

Cloudflare reads show thousands of proxy requests after October 6 while recorded page views almost disappear. Cloudflare documents that RUM cannot collect Worker subrequests: https://developers.cloudflare.com/web-analytics/faq/#can-i-use-real-user-monitoring-rum-with-cloudflare-workers

Production deployment passed: https://github.com/skilld-dev/skilld.dev/actions/runs/38241485542

Cloudflare activated Worker version 4d05e16c-9187-49c3-9dbe-f5142534f642 at 11:18:33 UTC on October 12.
Live browser initial load and page navigation sent direct events with HTTP 204 and no browser errors.
Cloudflare retained two /skills events and two /skills/trending events after deployment.
Their latest timestamp was 11:20:27 UTC. Cloudflare classified these headless checks as bots.
This verifies production collection. Normal visitor volume needs a longer measurement window.

@harlan-github-agent harlan-github-agent Bot added harlan-agent-ready The automated Review passed every gate on this head commit. and removed harlan-agent-running An Agent holds a Task on this issue or pull request right now. harlan-agent-review-required Pull request triage requires an adversarial Review for this head commit. labels Oct 12, 2026

@harlan-github-agent harlan-github-agent Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Harlan Agent Kit posted this automated review. AI open source policy.

Automated Review: READY.

Read the Review results

@harlan-zw
harlan-zw merged commit 24aec45 into main Oct 12, 2026
8 checks passed
@harlan-github-agent harlan-github-agent Bot removed the harlan-agent-ready The automated Review passed every gate on this head commit. label Oct 12, 2026
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