Skip to content

Implement PostHog website analytics foundation#101

Merged
f-gueguen merged 23 commits into
mainfrom
codex/posthog-phase1-website-foundation
Jun 7, 2026
Merged

Implement PostHog website analytics foundation#101
f-gueguen merged 23 commits into
mainfrom
codex/posthog-phase1-website-foundation

Conversation

@f-gueguen

@f-gueguen f-gueguen commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Why: M6.5.21 needs a privacy-heavy PostHog website foundation plus Phase 2/3 vocabulary alignment so backend-produced product events, dashboard actions, and browser/server error tracking remain useful without raw PII or customer content.
  • What: Added/updated analytics event catalog entries, dashboard page-crawl wiring, route-aware app-surface classification for exceptions/pageviews, safe current-url reconstruction for local/non-HTTPS app URLs, stable crawl-failure action metadata, semantic query dedupe for pageviews and site-scoped dashboard views, PostHog proxy failure telemetry, instant dashboard error retry capture, checkout/webhook/waitlist exception surface metadata, backend action-failure vocabulary sync, backend docs sync metadata, and PostHog analytics contract docs.

Testing

  • corepack pnpm test (Not run; targeted analytics/dashboard suites plus contracts were run instead.)
  • corepack pnpm check
  • corepack pnpm test:contracts
  • WEBLINGO_REPO_PATH=/Users/francoisgueguen/Documents/workspaces-self/saas/weblingo corepack pnpm docs:sync:check
  • Other: corepack pnpm vitest --run internal/analytics/events.test.ts internal/analytics/server.test.ts internal/analytics/envelope.test.ts
  • Other: corepack pnpm vitest --run components/dashboard/action-form.test.tsx app/dashboard/actions.capabilities.test.ts internal/analytics/events.test.ts app/dashboard/sites/[id]/pages/page.test.tsx internal/analytics/client.test.ts internal/analytics/envelope.test.ts internal/analytics/server.test.ts
  • Other: corepack pnpm vitest --run components/navigation-analytics-tracker.test.tsx components/dashboard/site-analytics-scope.test.tsx app/dashboard/error.test.tsx app/api/stripe/create-checkout-session/route.test.ts internal/analytics/navigation.test.ts
  • Other: corepack pnpm vitest --run app/api/analytics/posthog/[[...path]]/route.test.ts app/api/stripe/webhook/route.test.ts app/api/waitlist/route.test.ts internal/analytics/events.test.ts internal/analytics/envelope.test.ts

Docs sync and capability matrix

  • Updated docs/backend/DASHBOARD_SPECS.md if user-facing backend capability coverage changed. (N/A; analytics contract only.)
  • Ran WEBLINGO_REPO_PATH=/Users/francoisgueguen/Documents/workspaces-self/saas/weblingo corepack pnpm docs:sync and committed content/docs/_generated/* when backend HEAD advanced.

@vercel

vercel Bot commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated (UTC)
weblingo-website Error Error Jun 7, 2026 9:21am

@f-gueguen f-gueguen changed the title Implement PostHog phase 1 website analytics foundation Implement PostHog website analytics foundation Jun 7, 2026
@f-gueguen f-gueguen merged commit 2c8fdd8 into main Jun 7, 2026
4 of 6 checks passed
@f-gueguen f-gueguen deleted the codex/posthog-phase1-website-foundation branch June 7, 2026 09:44
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