PostHog: Open-source product analytics and feature management
Event tracking, analytics, and experimentation platform.
Learn more about posthog
PostHog is an open-source analytics and product management platform written in Python and JavaScript/TypeScript that can be deployed as a cloud service or self-hosted instance. The system captures user events through autocapture or manual instrumentation, stores them in a queryable data warehouse, and provides multiple interfaces for analysis including visualization tools and SQL access. It includes modules for session replay recording, feature flag management with cohort targeting, statistical experiment frameworks, and data pipeline processing with integrations to external services. Typical deployments range from small self-hosted hobby instances to large-scale cloud deployments handling millions of events monthly.
Unified feature set
Combines analytics, session replay, feature flags, experiments, and data pipelines in a single platform rather than requiring separate tools. This integration allows cross-referencing data across different product intelligence domains.
Self-hosting option
Offers a deployable open-source version that can run on infrastructure controlled by the user, with a documented hobby deployment process for single-machine setups and support for larger distributed deployments.
SQL-based querying
Provides direct SQL access to event data alongside visual analytics interfaces, allowing users to write custom queries against the underlying data warehouse for ad-hoc analysis.
import posthog
posthog.project_api_key = 'your_api_key'
posthog.host = 'https://app.posthog.com'
posthog.capture(
distinct_id='user_123',
event='button_clicked',
properties={'button_name': 'signup', 'page': 'homepage'}
)Maintenance release improving API error handling and reducing sourcemap processing log verbosity.
- –Expect clearer error messages when CLI API calls fail.
- –Sourcemap uploads now produce less console output during processing.
Adds terminal checks to login and query commands; no breaking changes or new requirements noted.
- –Verify terminal compatibility when running `posthog login` or `posthog query` commands.
- –Install via shell script, PowerShell, or npm at @posthog/cli@0.5.10 with no migration steps required.
Adds experimental proguard mapping support; no breaking changes or new requirements specified.
- –Test experimental proguard mapping uploads for Android crash symbolication workflows.
- –Release notes do not specify stability guarantees or configuration steps for proguard support.
Top in Developer Tools
Related Repositories
Discover similar tools and frameworks used by developers
corepack
Enforces package manager versions specified in package.json.
jsPDF
Generate PDF documents in-browser with JavaScript APIs.
PyMuPDF
Python bindings for MuPDF document processing library.
nanoid
Compact 21-character cryptographic IDs with URL-safe encoding.
redoc
React component rendering OpenAPI specifications as interactive HTML documentation.