Getting started with data warehouse

Last updated:

|

Link your first source

Data warehouse lets you store, query, and analyze your data in a unified platform, so you can build better products and make data-driven decisions.

You can query any of the data you've already sent to PostHog like events, persons, and sessions, but you can also link external sources to build a single source of truth for your customer data.

Platforms

Link your first source

Query your data with SQL

You can use SQL to query data from your sources and PostHog. We provide all sorts of commands and functions to help you with this.

After you've got the data you want, the SQL editor also provides a bunch of visualizations for you to use too.

Visualize your data
Query your data with SQL

Set up a join

The real power of the data warehouse is the ability to combine data from multiple tables in a single query.

Joins enable you to do this by letting you choose fields that act as connections between PostHog and external sources.

Create a join
Set up a join

Create and materialize views

You can save your most used queries as views and reference them in subsequent queries. This makes them composable and easy to reuse.

You can even materialize views to improve query performance.

Materialize view
Create a view

Unify customer data

The data warehouse can be used throughout PostHog as a single source of truth for your customer data. Of course, this means it can be used to power other PostHog products too.

Product analytics

Once you've linked a source, you can use it as you would your other PostHog data in trends. This makes setting up your first insights easy.

Selecting a data warehouse table in a trend

Revenue analytics

Sync Stripe to automatically generate a revenue analytics dashboard in PostHog to track MRR, customer count, ARPU, LTV, growth rate, and more.

revenue analytics dashboard

Experiments

Run experiments and calculate primary or secondary metrics using data warehouse tables.

Screenshot of the form to assign a data warehouse table to an experiment metric

Use for free

PostHog's data warehouse is built to be cost-effective by default, with a generous free tier and transparent usage-based pricing. Our generous free tier means more than 90% of companies use PostHog for free.

TL;DR 💸

  • No credit card required to start
  • First 1M rows per month are free
  • Above 1M we have usage-based pricing starting at $0.000015/row with discounts as volume increases
  • Set billing limits to avoid surprise charges
  • See our pricing page for more up-to-date details

That's it! You're ready to start building your data warehouse.

Link a source

Questions? Ask Max AI.

It's easier than reading through 794 pages of documentation

Community questions

Was this page useful?

Next article

Linking sources for PostHog's data warehouse

Choose your source below to get started with linking it to PostHog's data warehouse. You can also learn more about sources in the data pipeline docs .

Read next article