PostHog 已开源
PostHog Open Sourced

原始链接: https://github.com/PostHog/posthog-foss

PostHog 是一个一体化的开源平台,旨在帮助团队打造成功的产品。它将产品与网站分析、会话回放、功能标志、A/B 测试、错误追踪以及 AI 可观测性等核心工具整合在一个统一的套件中。此外,它还配备了数据仓库和数据流水线,以便在整个技术栈中同步和转换数据。 PostHog 的易用性极高,其托管的 PostHog Cloud(美国/欧盟)提供慷慨的免费额度,适合追求快速部署的用户。进阶用户也可选择通过 Docker 进行自托管,但该方式更适用于小规模使用。入门非常简单,只需通过简单的 JavaScript 代码片段、各类 SDK 或 API 即可集成到主流框架中。 除技术工具外,PostHog 在运营上也非常透明,不仅公开了公司手册,还提供全面的指南来帮助用户衡量激活率、留存率和收入。无论您需要企业级工具还是完全开源(FOSS)的解决方案,PostHog 都能提供灵活且可扩展的基础架构,助力您追踪用户行为并优化产品表现。

PostHog 宣布开源其代码库后,在 Hacker News 社区引发了质疑。尽管此举旨在鼓励外部贡献,但用户对该平台自托管的可行性表示了强烈担忧。 多位评论者指出,PostHog 的自托管部署脚本不可靠且经常出错,因为其代码库似乎更倾向于优化自家的云端产品。一些用户甚至形容安装过程“难如登天”,并指出该项目缺乏对小型自托管环境的必要支持。 技术讨论还涉及了项目的仓库结构——特别是主代码库与无专有代码版本之间的区别,以及对公司营销风格和内部文档标准的困惑(例如,一份包含破折号的文件中,竟然有一条禁止使用长破折号的奇怪规定)。总而言之,尽管社区成员认可开源代码这一举措,但许多人对于开发者能够实际运行自托管实例的可行性仍持怀疑态度。
相关文章

原文

posthoglogo

GitHub contributors PRs Welcome Docker Pulls GitHub commit activity GitHub closed issues

Docs - Community - Roadmap - Why PostHog? - Changelog - Bug reports

PostHog Demonstration

PostHog is an all-in-one, open source platform for building successful products

PostHog provides every tool you need to build a successful product including:

  • Product Analytics: Autocapture or manually instrument event-based analytics to understand user behavior and analyze data with visualization or SQL.
  • Web Analytics: Monitor web traffic and user sessions with a GA-like dashboard. Easily monitor conversion, web vitals, and revenue.
  • Session Replays: Watch real user sessions of interactions with your website or mobile app to diagnose issues and understand user behavior.
  • Feature Flags: Safely roll out features to select users or cohorts with feature flags.
  • Experiments: Test changes and measure their statistical impact on goal metrics. Set up experiments with no-code too.
  • Error Tracking: Track errors, get alerts, and resolve issues to improve your product.
  • Surveys: Ask anything with our collection of no-code survey templates, or build custom surveys with our survey builder.
  • Data warehouse: Sync data from external tools like Stripe, Hubspot, your data warehouse, and more. Query it alongside your product data.
  • Data pipelines: Run custom filters and transformations on your incoming data. Send it to 25+ tools or any webhook in real time or batch export large amounts to your warehouse.
  • AI observability: Capture traces, generations, latency, and cost for your LLM-powered app.
  • Workflows: Create workflows that automate actions or send messages to your users.

Best of all, all of this is free to use with a generous monthly free tier for each product. Get started by signing up for PostHog Cloud US or PostHog Cloud EU.

Getting started with PostHog

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, 5k recordings, 1M flag requests, 100k exceptions, and 1500 survey responses are free every month, after which you pay based on usage.

Self-hosting the open-source hobby deploy (Advanced)

If you want to self-host PostHog, 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.

We do not provide customer support or offer guarantees for open source deployments. See our self-hosting docs, troubleshooting guide, and disclaimer for more info.

Once you've got a PostHog instance, you can set it up by installing our JavaScript web snippet, one of our SDKs, or by using our API.

We have SDKs and libraries for popular languages and frameworks like:

Beyond this, we have docs and guides for Go, .NET/C#, Django, Angular, WordPress, Webflow, and more.

Once you've installed PostHog, see our product docs for more information on how to set up product analytics, web analytics, session replays, feature flags, experiments, error tracking, surveys, data warehouse, and more.

Learning more about PostHog

Our code isn't the only thing that's open source 😳. We also open source our company handbook which details our strategy, ways of working, and processes.

Curious about how to make the most of PostHog? We wrote a guide to winning with PostHog which walks you through the basics of measuring activation, tracking retention, and capturing revenue.

We <3 contributions big and small:

For an overview of the codebase structure, see monorepo layout and products.

This repo is available under the MIT expat license, except for the ee directory (which has its license here) if applicable.

Need absolutely 💯% FOSS? Check out our posthog-foss repository, which is purged of all proprietary code and features.

The pricing for our paid plan is completely transparent and available on our pricing page.

Hedgehog working on a Mission Control Center

Hey! If you're reading this, you've proven yourself as a dedicated README reader.

You might also make a great addition to our team. We're growing fast and would love for you to join us.

联系我们 contact @ memedata.com