Skip to content

feat(analytics): measure unique organic visitors - #406

Merged
Ducksss merged 1 commit into
devfrom
analytics/measure-organic-visitors
Aug 2, 2026
Merged

Ducksss merged 1 commit into
devfrom
analytics/measure-organic-visitors

Conversation

@tin-computer

@tin-computer tin-computer Bot commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Summary

  • classify consented PostHog page views as organic_search or other from an exact organic campaign marker or a fixed search-engine hostname list
  • mark controlled page-view proofs with verification_run while keeping all query strings and raw acquisition details out of analytics
  • update the public privacy contract and focused analytics assertions

Measurement

Monthly organic visitors are distinct PostHog people on $pageview where traffic_source = organic_search and verification_run = false, grouped by UTC month. Historical rows cannot be backfilled; the first trustworthy window begins when this change reaches production.

Checks

  • pnpm exec vitest run --config ./vitest.config.mts tests/int/analytics-contract.int.spec.ts
  • pnpm source:build
  • pnpm exec tsc --noEmit
  • focused ESLint on the five changed files
  • focused Playwright added; local runner web-server readiness timed out before tests started, so hosted E2E remains the delivery gate

@vercel

vercel Bot commented Jul 29, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
payload-components Ready Ready Preview Jul 31, 2026 10:23pm
payload-components-97bf Ready Ready Preview Jul 31, 2026 10:23pm

Co-authored-by: tin-computer[bot] <277149838+tin-computer[bot]@users.noreply.github.com>

This branch was successfully deployed

2 active deployments
Preview – payload-components-97bf — ad38ab0d Deployed Jul 31, 2026 by vercel[bot]
Preview – payload-components — ad38ab0d Deployed Jul 31, 2026 by vercel[bot]
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