• Stars
    star
    17,270
  • Rank 1,486 (Top 0.04 %)
  • Language
    Python
  • License
    Other
  • Created over 4 years ago
  • Updated 3 days ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

πŸ¦” PostHog provides open-source product analytics, session recording, feature flagging and A/B testing that you can self-host.

posthoglogo

PRs Welcome Docker Pulls GitHub commit activity GitHub closed issues

Docs - Community - Roadmap - Changelog - Bug reports

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
  • 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 your first 1 million events (and 15k replays) are free every month. We're constantly adding new features, such as user surveys!

Table of Contents

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 15k 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.

Features

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

Data and infrastructure tools

Read a full list of PostHog features.

Docs and support

Read how to integrate, and extend an open-source 'Hobby' deployment of PostHog in our documentation.

Check out our tutorials for step-by-step guides, how-to's, and best practices.

Learn more about getting the most out of PostHog's features in our product manual.

Ask a question to get support.

Contributing

We <3 contributions big and small. In priority order (although everything is appreciated) with the most helpful first:

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 🦸

More Repositories

1

posthog.com

Official docs, website, and handbook for PostHog.
TypeScript
324
star
2

posthog-js

Send usage data from your web app or site to PostHog, with autocapture.
TypeScript
201
star
3

squeak

A Q&A widget for your docs
JavaScript
172
star
4

posthog-foss

PostHog FOSS is a read-only mirror of PostHog, with all proprietary code removed. NOTE: This repo is synced automatically from the main PostHog repo. Please raise any issues and PRs there.
TypeScript
117
star
5

drf-exceptions-hog

Standardized and easy-to-parse API error responses for Django REST Framework (DRF).
Python
62
star
6

max-ai

Max bot deploy
Python
45
star
7

charts-clickhouse

Helm chart for deploying PostHog with ClickHouse on your K8s infrastructure
Python
44
star
8

posthog-js-lite

Reimplementation of posthog-js to be as light and modular as possible.
TypeScript
40
star
9

posthog-flutter

Posthog library for your Flutter and Dart applications
Dart
25
star
10

posthog-python

Send usage data from your Python code to PostHog.
Python
25
star
11

posthog-ios

PostHog iOS SDK
Swift
21
star
12

posthog-android

PostHog Android integration
Java
21
star
13

posthog-node

Official PostHog Node library
20
star
14

posthog-react-native

PostHog React Native Integration
18
star
15

posthog-plugin-geoip

Enrich PostHog events and persons with GeoIP location data
TypeScript
13
star
16

isgoogleanalyticsillegal.com

JavaScript
13
star
17

posthog-php

PHP
12
star
18

posthog-go

Official PostHog Go library
Go
12
star
19

hedgehog.vc

hedgehog.vc backs open source businesses and is operated by the team behind posthog inc
12
star
20

posthog-ruby

Send usage data from your Ruby code to PostHog.
Ruby
12
star
21

posthog-rs

Rust
11
star
22

old-charts

Official PostHog helm charts
Mustache
11
star
23

sidecar

A chrome extension that shows your users' data in any other SaaS tool
TypeScript
9
star
24

bigquery-plugin

TypeScript
8
star
25

check-package-version

Release automatically with npm package version check by PostHog
TypeScript
8
star
26

deployment

Various configs to deploy posthog
Shell
8
star
27

plugin-server

Service to process and save PostHog events, supporting JS/TS plugins at that
TypeScript
8
star
28

posthog-react-rrweb-player

TypeScript
7
star
29

posthog-plugin-migrator3000

Migrate your events to a new PostHog instance.
TypeScript
7
star
30

posthog-cloud

Internal scripts for PostHog multi-tenancy environment
Python
7
star
31

github-star-sync-plugin

Sync Github Stars to PostHog
JavaScript
6
star
32

stripe-plugin

Get customer and invoice data from Stripe into PostHog.
TypeScript
6
star
33

whereintheworld

Python
5
star
34

posthog-segment

🧩 PostHog<>Segment integration
JavaScript
5
star
35

meta

This is a place to discuss non-product issues in public.
5
star
36

react-cmd

⌨️ Extensive React command palette, made at PostHog
TypeScript
5
star
37

plugin-scaffold

PostHog Plugin TypeScript Types
TypeScript
4
star
38

downsampling-plugin

Basic plugin to limit quantity of events coming in
JavaScript
4
star
39

posthog-plugin-starter-kit

A quick PostHog plugin starting point
JavaScript
4
star
40

snowflake-export-plugin

PostHog Snowflake Export Plugin
TypeScript
4
star
41

feedback-app

TypeScript
4
star
42

notification-bar-app

TypeScript
4
star
43

posthog-zapier

⚑️ PostHog<>Zapier integration
TypeScript
4
star
44

posthog-java

Official PostHog java library
Java
4
star
45

capture

Dockerfile
3
star
46

status

Status page for PostHog services
3
star
47

s3-export-plugin

PostHog S3 Export Plugin
TypeScript
3
star
48

posthog-docusaurus

πŸ¦” PostHog plugin for Docusaurus v2
JavaScript
3
star
49

handbook

ARCHIVE (see Posthog.com repo instead): The PostHog handbook
3
star
50

posthog-cli

CLI for PostHog
TypeScript
3
star
51

posthog-migrate-meta

Migrate metadata from one organization to another
TypeScript
3
star
52

squeak-react

JavaScript
3
star
53

customerio-plugin

Send event data and emails into Customer.io.
TypeScript
3
star
54

posthog-github-action

JavaScript
2
star
55

flatten-properties-plugin

Flatten event properties to easily access them in filters.
JavaScript
2
star
56

event-sequence-timer-plugin

Time the time taken for a user to perform Event B after performing Event A.
TypeScript
2
star
57

posthog-hello-world-plugin

Exemplary PostHog plugin
JavaScript
2
star
58

squeak-strapi

TypeScript
2
star
59

github-release-tracking-plugin

Get release annotations in PostHog.
TypeScript
2
star
60

concept-pipeline-ui

TypeScript
2
star
61

twitter-followers-plugin

Get your Twitter follower numbers in PostHog daily without signing up to the Twitter API.
JavaScript
2
star
62

posthog-zendesk-plugin

JavaScript
2
star
63

plugin-repository

Plugins for PostHog
2
star
64

user-interview-app

TypeScript
2
star
65

posthog-kinesis-plugin

TypeScript
2
star
66

postgres-plugin

Export PostHog events to a PostgreSQL instance on ingestion.
TypeScript
2
star
67

cookie-banner

Cookie banner which you can use with PostHog and other tools
JavaScript
2
star
68

docs

ARCHIVE - PostHog documentation. Replaced with posthog.com repo
2
star
69

schema-enforcer-plugin

Enforce event schemas at ingestion for PostHog events.
TypeScript
2
star
70

integrations-repository

A repository for hosting a list of PostHog integrations, both official and community ones.
1
star
71

maxmind-plugin

Ingest GeoIP data via MaxMind into PostHog
TypeScript
1
star
72

simple-scheduler-plugin

Calls an external API at the set interval, and remembers the last time it was called
JavaScript
1
star
73

posthog-databricks-plugin

JavaScript
1
star
74

posthog-update

Server to let you know when there's a new version of PostHog
HTML
1
star
75

templates-repository

A repository for holding dashboard templates, both official and community ones
JavaScript
1
star
76

template-typescript

🟦 The base for any good TypeScript package
JavaScript
1
star
77

taxonomy-plugin

Standardize your event names into a single pattern.
JavaScript
1
star
78

posthog-js-examples

Examples of PostHog with JavaScript and Node.js
JavaScript
1
star
79

currency-normalization-plugin

Convert all amounts to a base currency
JavaScript
1
star
80

yc-badge

Sport your Y Combinator affiliation on your website with this nifty badge
1
star
81

calendly-app

TypeScript
1
star
82

mailboxlayer-plugin

Get email scores for PostHog users using the Mailboxlayer API.
JavaScript
1
star
83

storybook-build

Built version of the PostHog Storybook
1
star
84

posthog-prompts

JavaScript
1
star
85

make-some-noise-plugin

Generate a random event per minute, useful locally while developing
TypeScript
1
star
86

hal-12000

πŸ€– Friendly neighborhood AI
TypeScript
1
star
87

ph

DEPRECATED - Command-line utility to install, run, and manage PostHog.
TypeScript
1
star
88

metabase-clickhouse

A metabase docker image with the Clickhouse driver built-in
Dockerfile
1
star
89

posthog-automatic-cohorts-plugin

Automatic cohort creation based on user properties.
TypeScript
1
star
90

internallinker

Automatically create internal links between your markdown files.
Python
1
star
91

posthog-gcs-plugin

Export events to GCS on ingestion.
TypeScript
1
star
92

gitlab-release-tracking-plugin

JavaScript
1
star
93

posthog-redshift-import-plugin

Import data from Redshift into PostHog
TypeScript
1
star
94

session-tracker-plugin

Advanced session tracking for PostHog
TypeScript
1
star
95

posthog-vscode-extension

1
star
96

posthog-orbit-love-plugin

JavaScript
1
star
97

hubspot-plugin

Send contact data to Hubspot on PostHog identify events.
TypeScript
1
star
98

posthog-intercom-plugin

TypeScript
1
star
99

synch

Go
1
star
100

hog-rs

πŸ¦” Rust services for the PostHog platform.
Rust
1
star