Repository navigation
[FEAT] Product analytics: app-analytics kit v8 tracker for the desktop app - #121
Merged
Merged
Conversation
…p app Adds the first-party usage tracker (src/lib/analytics) beside the existing opt-in telemetry: screen views and active time, the first-agent funnel steps, milestone events, and a tracked link when a published page's URL is copied. Events post to the control plane's /api/e. On by default, with an opt-out switch in Profile. README architecture, privacy table and a Usage stats section are updated; CLAUDE.md tells later sessions to keep events current. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
Author
|
Merged at the owner's request, with the
The Tailwind 4 upgrade needs its own PR to turn the gate green again. Generated by Claude Code |
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.
What
Adds first-party product analytics (app-analytics kit v8, ported to Tauri) beside the existing opt-in telemetry, which is unchanged. Pairs with the
feature/app-analyticsPR in ScottieR/canopy-admin, which hosts the collector and stats.src/lib/analytics/: the tracker (client.ts), the event list (events.ts) and startup wiring (start.ts). Started once, in the main window only./architect/overview), never by agent or forum id.onboarding_step_completed,agent_created,reply_received,forum_created,forum_completed,connection_added,companion_paired,artifact_published; copying a published page's link is a tracked share.CLAUDE.mdtells later sessions to keep events current.What is sent
A random device id and session id, the screen, active time, and the events above with small enumerated props. Never message or file content, agent names, credentials, or anything typed.
Notes
events.tsmust stay identical tocanopy-admin/analytics/events.ts; a parity test there fails when they differ.VITE_API_URLpoints at.Testing
npm run typecheck,npm run build, and the full vitest suite (374 tests) pass.Known gaps
🤖 Generated with Claude Code