Skip to content

feat(analytics): track product events and issue identity tokens - #89

Open
thedogwiththedataonit wants to merge 4 commits into
mainfrom
codex/product-analytics-support
Open

thedogwiththedataonit wants to merge 4 commits into
mainfrom
codex/product-analytics-support

Conversation

@thedogwiththedataonit

@thedogwiththedataonit thedogwiththedataonit commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

Server-side product analytics should be usable from the CLI with the same input contract as the SDK. Add typed event-tracking and browser identity-token commands, including confirmation for live tracking, non-replayed identity proofs and generated command/API documentation.

Validation: 933 tests across 68 files, typecheck, lint, generated-doc freshness, builds, executable help/version checks and signal/regression smokes passed. Paired platform: https://github.com/GetBrew/brew-v2/pull/2514. Hold for coordinated merge; no package publication or version bump.

Reviewed with sol-loop: 3 rounds with GPT-6.1 Sol. Sol verdict: approved.
Created with GPT-6 in Codex.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

RetriggerView in GreptileConfidence Score: 5/5

The reviewed code appears safe to merge once the coordinated platform change is ready.

Summary

Adds analytics track and analytics identity-token, with matching API types and command docs.

  • The CLI submits product events after the user confirms the request.
  • The CLI issues five-minute browser identity tokens for existing contacts.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A[analytics track] --> B[Read and prepare events]
  B --> C{Confirmed?}
  C -->|No| D[Return confirmation command with events]
  C -->|Yes| E[POST events with retry key]
  F[analytics identity-token] --> G[Read four identity fields]
  G --> H[POST without retry key]
  E --> I[Print API response]
  H --> I
Loading

Reviews (4) · Last reviewed commit: "docs(api): align analytics token no-repl..." · Reviewed by Greptile

Comment thread src/commands/analytics/track.ts Resolved
Comment thread openapi/public-api-v1.yaml Resolved
@thedogwiththedataonit
thedogwiththedataonit force-pushed the codex/product-analytics-support branch from 9a05b71 to 7a8478b Compare November 1, 2026 07:22
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