https://github.com/PostHog/posthog Skip to content Navigation Menu Toggle navigation Sign in * Product + Actions Automate any workflow + Packages Host and manage packages + Security Find and fix vulnerabilities + Codespaces Instant dev environments + GitHub Copilot Write better code with AI + Code review Manage code changes + Issues Plan and track work + Discussions Collaborate outside of code Explore + All features + Documentation + GitHub Skills + Blog * Solutions For + Enterprise + Teams + Startups + Education By Solution + CI/CD & Automation + DevOps + DevSecOps Resources + Learning Pathways + White papers, Ebooks, Webinars + Customer Stories + Partners * Open Source + GitHub Sponsors Fund open source developers + The ReadME Project GitHub community articles Repositories + Topics + Trending + Collections * Enterprise + Enterprise platform AI-powered developer platform Available add-ons + Advanced Security Enterprise-grade security features + GitHub Copilot Enterprise-grade AI features + Premium Support Enterprise-grade 24/7 support * Pricing Search or jump to... Search code, repositories, users, issues, pull requests... Search [ ] Clear Search syntax tips Provide feedback We read every piece of feedback, and take your input very seriously. [ ] [ ] Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Name [ ] Query [ ] To see all available qualifiers, see our documentation. Cancel Create saved search Sign in Sign up You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert {{ message }} PostHog / posthog Public * Notifications You must be signed in to change notification settings * Fork 1.1k * Star 18.5k * PostHog provides open-source product analytics, session recording, feature flagging and A/B testing that you can self-host. posthog.com License View license 18.5k stars 1.1k forks Branches Tags Activity Star Notifications You must be signed in to change notification settings * Code * Issues 1.4k * Pull requests 85 * Actions * Projects 1 * Security * Insights Additional navigation options * Code * Issues * Pull requests * Actions * Projects * Security * Insights PostHog/posthog This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. master BranchesTags Go to file Code Folders and files Last Last Name Name commit commit message date Latest commit History 16,682 Commits .devcontainer .devcontainer .github .github .husky .husky .run .run .storybook .storybook .vscode .vscode bin bin cypress cypress docker docker ee ee eslint-rules eslint-rules frontend frontend hogql_parser hogql_parser hogvm hogvm openapi openapi patches patches playwright/e2e-vrt playwright/e2e-vrt plugin-server plugin-server plugin-transpiler plugin-transpiler posthog posthog share share staticfiles staticfiles .all-contributorsrc .all-contributorsrc .dockerignore .dockerignore .eslintignore .eslintignore .eslintrc.js .eslintrc.js .gitattributes .gitattributes .gitignore .gitignore .kearc .kearc .nvmrc .nvmrc .prettierignore .prettierignore .prettierrc .prettierrc .stylelintignore .stylelintignore .stylelintrc.js .stylelintrc.js .test_durations .test_durations CHANGELOG.md CHANGELOG.md CODEOWNERS CODEOWNERS CODE_OF_CONDUCT.md CODE_OF_CONDUCT.md CONTRIBUTING.md CONTRIBUTING.md Dockerfile Dockerfile Dockerfile.cloud Dockerfile.cloud Dockerfile.playwright Dockerfile.playwright LICENSE LICENSE README.md README.md SECURITY.md SECURITY.md babel.config.js babel.config.js cypress.e2e.config.ts cypress.e2e.config.ts depot.json depot.json docker-compose.base.yml docker-compose.base.yml docker-compose.dev-full.yml docker-compose.dev-full.yml docker-compose.dev.yml docker-compose.dev.yml docker-compose.hobby.yml docker-compose.hobby.yml docker-compose.playwright.yml docker-compose.playwright.yml gunicorn.config.py gunicorn.config.py jest.config.ts jest.config.ts jest.setup.ts jest.setup.ts jest.setupAfterEnv.ts jest.setupAfterEnv.ts latest_migrations.manifest latest_migrations.manifest manage.py manage.py mypy-baseline.txt mypy-baseline.txt mypy.ini mypy.ini package.json package.json playwright.config.ts playwright.config.ts pnpm-lock.yaml pnpm-lock.yaml postcss.config.js postcss.config.js production.Dockerfile production.Dockerfile pyproject.toml pyproject.toml pytest.ini pytest.ini requirements-dev.in requirements-dev.in requirements-dev.txt requirements-dev.txt requirements.in requirements.in requirements.txt requirements.txt tailwind.config.js tailwind.config.js test-runner-jest-environment.js test-runner-jest-environment.js test-runner-jest.config.js test-runner-jest.config.js tsconfig.dev.json tsconfig.dev.json tsconfig.json tsconfig.json unit.json.tpl unit.json.tpl webpack.config.js webpack.config.js View all files Repository files navigation * README * Code of conduct * License * Security posthoglogo [6874747073] PRs Welcome Docker Pulls GitHub commit activity GitHub closed issues Docs - Community - Roadmap - Changelog - Bug reports PostHog Demonstration See PostHog in action PostHog is an all-in-one, open source platform for building better products * Specify events manually, or use autocapture to get started quickly * Analyze data with ready-made visualizations, or do it yourself with SQL * Gather insights by capturing session replays, console logs, and network monitoring * Improve your product with A/B testing that automatically analyzes performance * Safely roll out features to select users or cohorts with feature flags * Send out fully customizable surveys to specific cohorts of users * Connect to external services and manage data flows with PostHog CDP PostHog is available with hosting in the EU or US and is fully SOC 2 compliant. It's free to get started and comes with a generous monthly free tier: * 1 million product analytics events * 5k session replays * 1 million feature flag requests * 250 survey responses We're constantly adding new features, with web analytics and data warehouse now in beta! Table of Contents * Get started for free * Docs * Contributing * Philosophy * Open-source vs paid Get started for free PostHog Cloud (Recommended) The fastest and most reliable way to get started with PostHog is signing up for free to PostHog Cloud or PostHog Cloud EU. Your first 1 million events (and 5k replays) are free every month, after which you pay based on usage. Open-source hobby deploy (Advanced) You can deploy a hobby instance in one line on Linux with Docker (recommended 4GB memory): /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/posthog/posthog/HEAD/bin/deploy-hobby)" Open source deployments should scale to approximately 100k events per month, after which we recommend migrating to a PostHog Cloud instance. See our docs for more info and limitations. Please note that we do not provide customer support for open source deployments. Docs ui-demo Want to find out more? Request a demo! PostHog brings all the tools and data you need to build better products. Analytics and optimization tools * Event-based analytics: Capture your product's usage automatically , or customize it to your needs * User and group tracking: Understand the people and groups behind the events and track properties about them * Data visualizations: Create and share graphs, funnels, paths, retention, and dashboards * SQL access: Use SQL to get a deeper understanding of your users, breakdown information and create completely tailored visualizations * Session replays: Watch videos of your users' behavior, with fine-grained filters and privacy controls, as well as network monitoring and captured console logs * Heatmaps: See where users click and get a visual representation of their behaviour with the PostHog Toolbar * Feature flags: Test and manage the rollout of new features to specific users and groups, or deploy flags as kill-switches * A/B and multivariate experimentation: run simple or complex changes as experiments and get automatic significance calculations * Correlation analysis: Discover what events and properties correlate with success and failure * Surveys: Collect qualitative feedback from your users using fully customizable surveys Data and infrastructure tools * Import and export your data: Import from and export to the services that matter to you with the PostHog CDP * Ready-made libraries: We've built libraries for JavaScript, Python, Ruby, Node, Go, Android, iOS, PHP, Flutter, React Native, Elixir, Nim, and an API for anything else * Plays nicely with data warehouses: import events or user data from your warehouse by writing a simple transformation plugin, and export data with pre-built apps - such as BigQuery, Redshift, Snowflake, and S3 Read a full list of PostHog features. Contributing We <3 contributions big and small. In priority order (although everything is appreciated) with the most helpful first: * Vote on features or get early access to beta functionality in our roadmap * Open a PR (see our instructions on developing PostHog locally) * Submit a feature request or bug report Philosophy Our mission is to increase the number of successful products in the world. To do that, we build product and data tools that help you understand user behavior without losing control of your data. In our view, third-party analytics tools do not work in a world of cookie deprecation, GDPR, HIPAA, CCPA, and many other four-letter acronyms. PostHog is the alternative to sending all of your customers' personal information and usage data to third-parties. PostHog gives you every tool you need to understand user behavior, develop and test improvements, and release changes to make your product more successful. PostHog operates in public as much as possible. We detail how we work and our learning on building and running a fast-growing, product-focused startup in our handbook. Open-source vs. paid This repo is available under the MIT expat license, except for the ee directory (which has it's license here) if applicable. Need absolutely % FOSS? Check out our posthog-foss repository, which is purged of all proprietary code and features. To learn more, book a demo or see our pricing page. We're hiring! Come help us make PostHog even better. We're growing fast and would love for you to join us. Contributors [172742] [53387] [131274] [455062] [148820] [586417] [391319] [387607] [474976] [695884] [2141] [141950] [607914] [839706] [29110] [148700] [192201] [298873] [118859] [898097] [596589] [801176] [582417] [887661] [140952] [143346] [242513] [149900] [611256] [487897] [129556] [709719] [209522] [459640] [666980] [273856] [267797] [323556] [7049] [29784] [103469] [312398] [501702] [113942] [114341] [253652] [378388] [57522] [703218] [756227] [314783] [559573] [393096] [383079] [154479] [636358] [654153] [304724] [330425] [521114] [346340] [303528] [727781] [240509] [14028] [155981] [170785] [273631] [901404] [281590] [304334] [781261] [475313] [109829] [594237] [735414] [635873] [129023] [883981] [458351] [829320] [116333] [211994] [182290] [43129] [141246] [46943] [905151] [411558] [432945] [489643] [483682] [496563] [473184] [269733] [104899] [386208] [309297] [269182] [19322] [305409] [105985] [112725] [68859] [112566] [134829] [611271] [328367] [491264] [11335] [4706] [482066] [111769] [131351] [222204] [783771] [227551] [605173] [168914] [251378] [370597] [234625] [735227] [183345] [183662] [105945] [127301] [108901] [179459] [649020] [174024] [118342] [187117] [563914] [783239] [101004] [568769] [661302] [852954] [357426] [711514] [161722] [282482] [332713] [250400] [921217] [397234] [114667] [346592] [265578] [356538] [626298] [230010] [630315] [206677] [669712] [132512] [785891] [138922] [866708] [719226] [855158] [352418] [110817] [617587] [126808] [911948] [140971] [592178] [944809] [666491] [258677] [789643] [21968] [298910] [130963] [697075] [131719] [132085] [664668] [447664] [606046] [253237] [586747] [423511] [12774] [208138] [642841] [213460] [403176] [587257] [339182] [326564] [243854] [835246] [271448] [716269] [259847] [750622] [292438] [270109] [700525] [235466] [418819] [394090] [289076] [101875] [500868] [113485] [150159] [222271] [986207] [master] [230008] [171588] [4515] [901528] [129003] [672324] [144866] [130874] [173475] [160329] [417209] [101361] [100226] [890921] [185135] [435152] [489658] [100388] [184089] [2122] [434675] [310828] [140993] [101388] [481304] [536747] [14925] [906228] [318617] [109664] [432262] [223012] [914647] [109241] [641524] [914107] [624108] [743326] [222408] About PostHog provides open-source product analytics, session recording, feature flagging and A/B testing that you can self-host. posthog.com Topics react javascript python typescript analytics feature-flags ab-testing experiments session-replay Resources Readme License View license Code of conduct Code of conduct Security policy Security policy Activity Custom properties Stars 18.5k stars Watchers 102 watching Forks 1.1k forks Report repository Contributors 210 * @Twixes * @mariusandra * @pauldambra * @timgl * @github-actions[bot] * @EDsCODE * @macobo * @yakkomajuri * @benjackwhite * @neilkakkar * @paolodamico * @thmsobrmlr * @posthog-bot * @tiina303 + 196 contributors Languages * Python 52.6% * TypeScript 43.3% * C++ 2.1% * SCSS 0.9% * HTML 0.3% * JavaScript 0.3% * Other 0.5% Footer (c) 2024 GitHub, Inc. Footer navigation * Terms * Privacy * Security * Status * Docs * Contact * Manage cookies * Do not share my personal information You can't perform that action at this time.