product analytics
PostHog
PostHog
Connect PostHog to let agents query product analytics, inspect session replays, and check feature flag rollouts. Agents can correlate product data with infrastructure signals to diagnose issues and understand user impact.
Connect
Connect PostHog from the terminal. Pass --help for the flags PostHog accepts.
Terminal
polylane integration connect --type posthogOAuth with one project chosen on PostHog's consent screen.
Connect PostHog and choose one project on PostHog's consent screen.
Polylane only reads from PostHog.
| Tool | Scopes | What they unlock |
|---|---|---|
posthogQuery | user:read, project:read, query:read, event_definition:read, property_definition:read, action:read | Queries product data and discovers events, properties, and actions. |
posthogInsights | insight:read, dashboard:read, notebook:read, alert:read | Reads saved analysis, dashboards, notebooks, and alerts. |
posthogChanges | annotation:read, feature_flag:read, experiment:read, experiment_holdout:read, experiment_saved_metric:read, early_access_feature:read, activity_log:read | Explains product changes, experiments, and feature rollouts. |
posthogErrors | error_tracking:read, health_issue:read, logs:read, metrics:read, tracing:read, llm_analytics:read, endpoint:read | Reads errors and the telemetry that explains them. |
posthogReplays | session_recording:read, session_recording_playlist:read, person:read, cohort:read, group:read, survey:read | Finds sessions and the audiences affected. |
posthogApi | organization:read, hog_function:read, batch_export:read, warehouse_table:read, warehouse_view:read, external_data_source:read, integration:read, web_analytics:read, heatmap:read | Reads the allow-listed PostHog API surface. |
Disconnecting leaves the PostHog authorized application in place. Remove it under Settings → Connected applications in PostHog.
Disconnect
Disconnecting stops every sync and check and deletes the credentials Polylane held. Polylane removes what PostHog's API lets it remove. The following stays until you remove it yourself:
- PostHog authorized application
Terminal
polylane integration disconnect <id>Tools
6Operations agents can perform in threads.
Query
Query PostHog analytics or discover the event and property vocabulary for a bounded date range
Insights
Read the PostHog insights, dashboards, alerts and notebooks the team watches
Changes
Read PostHog feature flags, experiments, releases, annotations and activity that explain what changed
Errors
Read PostHog error-tracking issues, their events, stack frames and spike history
Replays
Read PostHog session recordings and playlists to understand what users saw
Api
Call an allow-listed PostHog GET endpoint that no dedicated PostHog tool owns