Querying Canvas Data

Get PostHog data into a canvas correctly: the host-injected `ph` SDK (loadInsight, query, capture, state, connectors, openExternal, navigate), the data hierarchy (saved insights first, typed query nodes second, inline HogQL last), verifiability (insight-backed metrics link their saved insight in PostHog; ad-hoc queries expose the exact query that ran), per-insight-type result shapes, progressive per-query loading, date-range wiring, live third-party data through the viewer's own connections (ph.connectors), and event capture from a canvas. Use whenever a canvas shows metrics, charts, tables, any PostHog data, or data from GitHub or an MCP server, or needs to send analytics events.

posthog 8c74b7a 2 files · 26.1 KB Updated

File contents

posthog/posthog-foss/tree/main/products/canvas/skills/querying-canvas-data commit 8c74b7afd5

Frequently asked questions

npx skillmds@latest add posthog/querying-canvas-data