-
-
Notifications
You must be signed in to change notification settings - Fork 131
feat(admin): add Plans analytics dashboard #2976
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 16 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
59e73c0
docs: design plans analytics dashboard
WcaleNieWolny e7714cc
docs: clarify plans analytics failure states
WcaleNieWolny a1656e8
docs: add plans analytics implementation plan
WcaleNieWolny 060a4ab
Merge remote-tracking branch 'origin/main' into wolny/plans-analytics…
WcaleNieWolny c58548d
refactor(analytics): share PostHog read transport
WcaleNieWolny af79aaf
feat(admin): model plans visit analytics
WcaleNieWolny da615f6
feat(admin): classify historical plans billing state
WcaleNieWolny 375c31f
feat(admin): aggregate plans analytics
WcaleNieWolny b394fc8
feat(admin): expose plans analytics metric
WcaleNieWolny d84d29b
feat(admin): prepare plans analytics presentation
WcaleNieWolny cd607ec
feat(admin): add plans analytics dashboard
WcaleNieWolny 877312a
fix(admin): mark legacy deduplication unverified
WcaleNieWolny 3d67ab1
fix(admin): avoid console grep false positive
WcaleNieWolny 77862fe
fix(admin): address plans analytics review
WcaleNieWolny 98fc5e3
fix(admin): bound plans analytics queries
WcaleNieWolny 458e588
fix(admin): scope plans visit query
WcaleNieWolny 86bb39d
fix(admin): clarify plans analytics timeout
WcaleNieWolny 8377aec
Merge remote-tracking branch 'origin/main' into wolny/plans-analytics…
WcaleNieWolny c43fc17
fix(i18n): add plans analytics translation contexts
WcaleNieWolny 90b82a5
test(admin): strengthen plans analytics regressions
WcaleNieWolny 052ead9
test(observe): accept native empty state
WcaleNieWolny File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| # Plans Checkout Completion Analytics | ||
|
|
||
| The current Plans analytics page measures checkout intent only. Completion must remain deferred until Capgo emits a reliable server-side `Checkout Completed` event. | ||
|
|
||
| The future event must contain `org_id`, a stable `checkout_attempt_id`, Stripe checkout session ID, product ID, recurrence, and completion timestamp. `Checkout Started` must carry the same `checkout_attempt_id` into Stripe metadata so completion is joined directly rather than inferred from a redirect. | ||
|
|
||
| The future full-width daily stacked chart uses the attributed Plans-opening UTC day. Each organization that started checkout that day appears once as Completed or Not completed. Recent attempts remain pending until the agreed observation window has elapsed; they must not be labeled abandoned prematurely. | ||
|
|
||
| Implementation requires a separate approved design for the observation window, late completions, retries, plan changes, and existing subscribers. |
1,518 changes: 1,518 additions & 0 deletions
1,518
docs/superpowers/plans/2026-08-10-plans-analytics-dashboard.md
Large diffs are not rendered by default.
Oops, something went wrong.
293 changes: 293 additions & 0 deletions
293
docs/superpowers/specs/2026-08-10-plans-analytics-dashboard-design.md
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.