Twig's integration with PostHog brings product analytics directly into your development environment. This section covers how to set up and use these features.
Most developers work on features without direct access to user data. Questions like:
...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.
With PostHog connected, you can:
how many users completed the checkout flow this week?
The agent can query your PostHog data and report back.
is the new-dashboard feature flag enabled for all users?
Understand what's shipped and to whom.
the signup conversion rate dropped last week.
help me investigate what changed in the signup flow code.
Combine analytics insights with code changes.
after deploying, let me know if error rates change
for the payment processing module.
To use PostHog features, you need to:
Twig uses your existing PostHog data. For detailed information about PostHog features: