Repository navigation
Conversation
…tall Behind the wizard-web-analytics-setup flag, web projects get a runner-seeded web-analytics task. A static scan proposes the likely conversion (sign up, checkout, demo, contact), the capture task is told to instrument it, and the task confirms the goal, the authorized domain and web vitals or heatmaps with one wizard_ask before creating them through the PostHog MCP. Adds WEB-ANALYTICS-SETUP.md and a backend proposal for a saved conversion goal. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
🧙 Wizard CIRun the Wizard CI and test your changes against wizard-workbench example apps by replying with a GitHub comment using one of the following commands: Test all apps:
Test all apps in a directory:
Test an individual app:
Show more apps
Test against a Context Mill branch:
Add Results will be posted here when complete. |
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.
Problem
The wizard installs posthog-js, but web analytics is left half set up. Nothing sets authorized URLs, web vitals, heatmaps or a conversion goal, so users finish those steps by hand in PostHog.
Changes
A prototype behind the flag
wizard-web-analytics-setup, for projects with a web frontend. It is skipped in CI.web-analytics/conversion-candidates.ts) finds sign up, checkout, demo and contact flows, plus success pages such as/thank-you.captureas a detected fact, so its event is instrumented in the same run.web-analyticstask runs afterreview. It asks once, then creates the goal's action, adds the domain toapp_urlsand turns on web vitals and heatmaps through the MCP. It edits no code./web?conversionGoal.actionId=<id>.docs/proposals/web-analytics-conversion-goal-api.mdproposes the backend fix.WEB-ANALYTICS-SETUP.mdhas the checklist, design and open questions. It is for review and shouldn't merge as is.Test plan
web-analytics.test.tsuse temp-dir fixture apps. They cover the ranking, routes, flag, CI and non-web gating, and facts.tsc -bandvitest runpass.LLM context
Written by Claude Opus 5.5 (
claude-opus-5-5) in Claude Code, as an overnight crew task.🤖 Generated with Claude Code