PostHog Analytics Integration
InsForge now connects to PostHog in one OAuth click. From Analytics in the dashboard, click Connect PostHog — we provision a PostHog project for you, store the credentials encrypted, and the page fills with live data.
What ships on day one:
- Web Analytics KPIs — visitors, page views, sessions, and bounce rate, each with a trend line and percent change vs. the previous window
- Breakdowns — top pages, countries, and device types
- Retention — weekly retention cohort, computed against
$pageviewevents - Session replays — the most recent recordings, openable in a modal without leaving InsForge
- API key card — copy the
phc_project key and host for anything the dashboard doesn't cover
A time-range selector at the top of the page controls every card in one place.
Setup for Agents
After connecting, the Analytics page shows a copyable prompt for Claude Code, Cursor, or any coding agent that runs the InsForge skill — the skill directs the agent to the official PostHog wizard, which detects your framework, installs the right SDK, and wires the provider with your project key. Or run it directly:
npx @insforge/cli posthog setup
