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.
連接
從終端機連接PostHog。傳入--help可查看PostHog接受的旗標。
Terminal
polylane integration connect --type posthogOAuth;在 PostHog 同意頁面選擇一個專案。
連接 PostHog,並在 PostHog 同意頁面選擇一個專案。
Polylane 只會讀取 PostHog 資料。
| Tool | Scopes | What they unlock |
|---|---|---|
posthogQuery | user:read, project:read, query:read, event_definition:read, property_definition:read, action:read | 此問題所需的讀取權限。 |
posthogInsights | insight:read, dashboard:read, notebook:read, alert:read | 此問題所需的讀取權限。 |
posthogChanges | annotation:read, feature_flag:read, experiment:read, experiment_holdout:read, experiment_saved_metric:read, early_access_feature:read, activity_log:read | 此問題所需的讀取權限。 |
posthogErrors | error_tracking:read, health_issue:read, logs:read, metrics:read, tracing:read, llm_analytics:read, endpoint:read | 此問題所需的讀取權限。 |
posthogReplays | session_recording:read, session_recording_playlist:read, person:read, cohort:read, group:read, survey:read | 此問題所需的讀取權限。 |
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 | 此問題所需的讀取權限。 |
中斷連線後,已授權的 PostHog 應用程式仍會保留。請在 PostHog 的 Settings → Connected applications 中移除。
中斷連接
中斷連接會停止所有同步與檢查,並刪除Polylane持有的憑證。 Polylane會移除PostHog的API允許它移除的東西。以下項目會留下,直到你自行移除:
- PostHog authorized application
Terminal
polylane integration disconnect <id>工具
6代理可以在對話串中執行的操作。
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