PostHog
Product analyticsConversion events. Captures trusted checkout and purchase checkpoints without sending private payment details.
Server events. Captures trusted app and payment events on the server without duplicate records.
Revenue reversals. Records refunds against the original purchase so revenue funnels stay accurate.
Product decisions backed by events you can trust.
Mined from production apps and scanned for secrets on every release. Typed end to end.
PostHog starter code pack
A production-mined PostHog structure for safe event capture, funnels, feature flags, session context, tracking decisions, verification, and setup.
After you buy, one prompt pulls it in
Click, then paste into your AI chat. Your agent installs Boost OS and wires in the PostHog starter code pack.
Then just tell your agent what you want
Your AI coding agent · with Boost OS
Track my signup funnel without sending any private customer data.
Building from the PostHog pack:
Event capture from src/events, funnel checkpoints from src/funnels, and an approved-properties list that keeps private values out.
Everything stays wired through src/lib/app-adapter.ts, with no raw PostHog calls scattered through your app.
- Cursor
- Claude Code
- Codex
- GitHub Copilot
- Windsurf
What you get
- Choose events tied to real product decisions
- Capture actions without leaking private data
- Build funnels from consistent checkpoints
- Roll out features with account-aware flags
- Attach useful context to customer sessions
- Verify events before trusting a chart
The move list
14 modules across three jobs. Open any module to see every file inside it.
Get paid
Take the money: one-time, recurring, metered, or agent-initiated.
After the sale
Deliver access, send the emails, and handle refunds without drama.
The safety rails
The plumbing that keeps every event verified and every grant counted once.
- Server eventsCaptures trusted app and payment events on the server without duplicate records.1 file
- Event verificationChecks event names, allowed details, flags, and delivery before reports are trusted.1 file
- Analytics libraryCentralizes approved events, safe properties, customer context, and capture helpers.5 files
- Session setupMaps PostHog keys, browser loading, server capture, session context, and privacy choices.16 files
Provenance
Extracted from production PostHog systems serving real customers
Frequently asked questions
Is this a PostHog Next.js starter?
Yes. The pack is built for Next.js apps that need safe event capture, useful funnels, feature flags, session context, clear tracking choices, and verification.
Does it prevent private data from reaching PostHog?
Yes. It uses an approved list of event details, keep sensitive values out, and show where browser and server events need different checks.
Is the PostHog code pack available now?
Yes. Every active Boost OS license includes it with no separate purchase; onboard it from the pill on this page: click, paste the prompt into your AI chat, and your agent does the rest.
Can I convert this pack to Python or another language?
The PostHog pack ships in TypeScript. Every module is adapter-based and written with plain comments, so you can ask your AI agent in chat to convert any module to your language and keep the logic intact. The TypeScript version stays the source of truth for updates.
Add the PostHog card to your collection
One $199 license includes every current and future production code pack.
Get Boost OS