Repository navigation
feat(telemetry): GeoIP, environment classification, person profiles, website analytics - #2
Merged
Merged
Conversation
…website analytics Library usage analytics (@ahtmljs/schema telemetry): - Enable PostHog GeoIP: stop sending $geoip_disable so events carry approximate country/city. Client IPs are discarded by the project. - Classify every event's environment so real users can be separated from CI/build/test traffic: env_class, ci_provider, hosting, is_tty, is_container, node_env, package_manager. Enum/boolean values only; env var values are never sent. - Per-process $session_id (UUIDv7). - Anonymous person profiles keyed by the anonymous install id, with first/last env_class, package, version, runtime and OS, enabling cohorts, lifecycle, retention and stickiness. - error.<code> events from AHTMLError (code only, no message). Landing site: - PostHog web analytics with in-memory persistence (no cookies, nothing stored in the browser), reverse proxy via /ingest, heatmaps and web vitals, no session recording, production only. - Privacy page covers website analytics, package usage analytics and Scarf; removes a stale Google Analytics claim. Docs: README usage-analytics fields, docs/agents.md, CHANGELOG.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Library usage analytics (
@ahtmljs/schema)$ipis sent, and the PostHog project discards client IPs.env_class: test, ci, build, serverless, dev, server, cli_interactive, browser or unknown.ci_provider,hosting,is_tty,is_container,node_envandpackage_manager.$session_id(UUIDv7), one per process.error.<code>events fromAHTMLError: the code only, never the message.Landing site
/ingestreverse proxy, heatmaps, web vitals, no session recording, production only.PostHog project (already configured, outside this diff)
e2e.*events.Merging triggers the auto-release of the next patch, after which new installs report the richer data.
Before merging
Test plan
npm run build:packagesnpm test: 689 pass, 0 failnpm run smoke:importsnpm run test:conformance: 63 pass, 0 failnpm run build -w examples/landingandtype-check: no PostHog calls during builde2e.geo_probeande2e.env_probe→https://eu.i.posthog.com/batch/200 OK$pageviewdoes not carry$internal_or_test_user