Skip to content

Track anonymous website and download events#5

Merged
yaacovcorcos merged 1 commit into
mainfrom
agent/track-site-events
Jul 20, 2026
Merged

Track anonymous website and download events#5
yaacovcorcos merged 1 commit into
mainfrom
agent/track-site-events

Conversation

@yaacovcorcos

Copy link
Copy Markdown
Contributor

Summary

  • add privacy-preserving first-party tracking for page views and outbound links
  • route installer clicks through validated ScientFactory redirects and record click or resolution failure events
  • store the four whitelisted event types in Cloudflare D1 without cookies, IPs, fingerprints, referrers, or persistent visitor IDs
  • add an operator report command, migration, privacy disclosure, and endpoint coverage

Validation

  • bun run check
  • local Cloudflare Pages function flow verified
  • all four installer links resolve to same-site tracked endpoints
  • local and preview hosts confirmed not to write production events

Deployment impact

  • D1 database scientfactory-downloads and migration 0001_event_tracking.sql are already applied.
  • Production uses the DOWNLOAD_DB binding from wrangler.jsonc.
  • A tracking database failure is fail-open and never blocks a valid installer redirect.
  • download_failed means ScientFactory could not resolve or start the redirect; it does not claim to observe a later GitHub transfer failure.

@yaacovcorcos
yaacovcorcos requested a review from YishayPo as a code owner July 20, 2026 13:48
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying scientfactory-website with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2ac9cb7
Status: ✅  Deploy successful!
Preview URL: https://d23128c2.scientfactory-website.pages.dev
Branch Preview URL: https://agent-track-site-events.scientfactory-website.pages.dev

View logs

@yaacovcorcos
yaacovcorcos merged commit fb69937 into main Jul 20, 2026
2 checks passed
@yaacovcorcos
yaacovcorcos deleted the agent/track-site-events branch July 20, 2026 13:49
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