Open-source product analytics with session replay and feature flags. Type: API Key (Personal or Project) Header: Authorization: Bearer {api_key} For capture: Pr
Posthog provides open-source product analytics focused on event tracking, session replay, and feature flag management. It lets marketers and product teams capture detailed user interactions, run SQL-like queries on events using HogQL, and control feature rollouts through targeted flags. It supports both cloud and self-hosted setups, making it flexible for privacy-conscious environments and high-volume event streams.
This skill is designed for growth marketers managing product analytics to optimize user engagement and conversion funnels. It suits technical SEO and PPC operators who need granular event data integrated with website behavior for better attribution. Agency strategists working on feature rollouts and A/B tests will find Posthog useful for combining session replay insights with real-time feature flag control.
Practitioners start by instrumenting event capture through Posthog’s API or SDK to track key user actions like signups and pageviews. Next, they use HogQL queries to analyze event trends and segment users based on behavior over specific time windows. Feature flags are configured and evaluated per user to run controlled experiments or staged rollouts. Finally, session recordings are reviewed to qualitatively assess user experience issues contributing to conversion bottlenecks.
How does Posthog handle user identification? You assign distinct IDs in events to tie sessions and actions to individual users. Can I run SQL queries on my event data? Yes, HogQL is Posthog’s SQL-like language tailored for event analytics. Is feature flag evaluation real-time? Yes, you can query flag values per user instantly via the Decide API endpoint.
Attach the Posthog skill to your agent tasks by providing your API key for authentication, allowing the agent to capture events, query insights, and retrieve feature flag states. Expect the agent to manage event batching and session recording retrieval automatically, with HogQL queries enabling custom analytics within your flow. We recommend starting with event capture and feature flag checks to integrate Posthog’s product analytics into your Metaflow pipelines before expanding to session replay and advanced querying.
For broader context, see our roundup of claude marketing skills, and read Claude Code reporting workflows for marketing agencies for related setup guidance.