posthog features
Twig's integration with PostHog brings product analytics directly into your development environment. This section covers how to set up and use these features.
why posthog in twig?
Most developers work on features without direct access to user data. Questions like:
- "How many people use this feature?"
- "What errors are users encountering?"
- "What's the conversion rate on this flow?"
...require switching to a dashboard, running queries, and context-switching back to code.
Twig puts this data at your fingertips, and lets the agent reference it when helping you build.
what you can do
With PostHog connected, you can:
ask questions about user behavior
how many users completed the checkout flow this week?
The agent can query your PostHog data and report back.
check feature flag status
is the new-dashboard feature flag enabled for all users?
Understand what's shipped and to whom.
reference analytics in development
the signup conversion rate dropped last week.
help me investigate what changed in the signup flow code.
Combine analytics insights with code changes.
validate your work
after deploying, let me know if error rates change
for the payment processing module.
getting started
To use PostHog features, you need to:
- Have a PostHog account
- Connect twig to your PostHog organization
- Select the project you're working on
learn more about posthog
Twig uses your existing PostHog data. For detailed information about PostHog features: