Home/Skills/PostHog

Analytics & Attribution · Open source on GitHub

PostHog

Product analytics, session replay, A/B testing and feature flags in one product — the only tool here that covers the whole behavioural stack on its own.

GitHub Open-source tool Python / TypeScript · 40.7k ★ MIT / 商业双授权
PostHog/posthog GitHub repository card

Upfront: I did not build this. It is an open-source project on GitHub (PostHog/posthog, MIT / 商业双授权). It is listed here on star count, maintenance activity and how well it fits day-to-day storefront operations.

What it does

How to use it

Start on the cloud free tier to see whether it fits, then consider self-hosting. Deployment options are in the docs:

# self-hosting options are documented at
# https://posthog.com/docs/self-host

# cloud: sign up, drop the JS snippet into your site <head>

On WordPress, put the snippet in the theme's <head> or use a code-insertion plugin. Self-hosting is demanding (it needs ClickHouse), so proving it out on cloud first is the safer order.

When to use it, and when not to

Pick this when you want one tool for the whole behavioural stack. For lightweight traffic stats only, use Plausible; for replay where the data must stay on your servers, OpenReplay.