Query your Stripe data in PostHog

Connect Stripe to PostHog to put your revenue and product data in one place, so you can see which features drive revenue and what customers do before they cancel.

What syncs from Stripe

PostHog can sync 40+ Stripe tables, so most of your billing model comes across, not a thin slice of it, including:

Billing core

Customers, charges, invoices, subscriptions, and subscription schedules.

Catalog

Products, prices, coupons, discounts, and tax rates.

Money movement

Refunds, credit notes, payment intents, payouts, balance transactions, and disputes.

Checkout

Checkout sessions, payment links, setup intents, and quotes.

Choose your sync mode

Webhook sync

Keeps data fresh in near real time and costs the least to run.

Append-only sync

Pulls new records on a schedule.

Full refresh

Re-downloads everything when you need every field reconciled.

PostHog handles the webhook signing secrets and updates subscriptions when you turn on new tables.

How to connect Stripe

You don't need a data engineer or a warehouse of your own. The setup wizard walks you through it, and you choose which tables to sync and what access PostHog gets: connect with OAuth, or use a restricted API key with read access.

PostHog Wizard hedgehog

Questions you can answer with Stripe and PostHog

Product

Which features do my paying customers use?

Join Stripe MRR to feature-usage events to rank features by the revenue of the people who use them.

Read the guide

Did this new feature move revenue?

Split users on a feature flag or experiment, then compare Stripe revenue and retention between the group that saw it and the group that didn't.

Read the guide

Growth

Which channels bought customers who stuck around?

Tie first-touch acquisition source to Stripe revenue, not just signups. The cheapest leads and the customers who still pay in month six may not come from the same channels.

Read the guide

When are customers ready to grow to the next tier?

Compare product usage against the plan limits in Stripe and flag accounts sitting near or over the line while still on a smaller tier.

Read the guide

Customer success

What do customers do right before they cancel?

Pull cancellation dates from Stripe and look at the 30 days of activity before each one. Find out what the warning signs were so you can act on them next time.

Read the guide

Are my biggest customers happy?

Put each account's revenue next to its engagement and find the high-paying, low-usage accounts so you can contact them before their contract is up for renewal.

Read the guide

Use Stripe data across PostHog

Once it's in PostHog, Stripe data isn't trapped in an analytics tab. You can use it everywhere you already work.

Surveys

Fire an NPS survey only at customers who've paid for three months or more, or trigger a "what changed?" survey the moment someone drops a plan tier in Stripe.

Session replay

Filter recordings to your top accounts by MRR and use Replay Vision to summarize what they all have in common.

Error tracking

Sort exceptions by the revenue of the accounts hitting them, so the crash taking down three enterprise customers jumps the queue ahead of the one annoying a hundred free trials.

Alerts

Set an alert on a high-MRR cohort's usage dropping below its normal range, so a churning account lands in your inbox before it churns.

Experiments

Set revenue as the goal metric so a pricing-page or checkout experiment is measured by what people paid, not how many reached the button.

Do it once, reuse it everywhere

Build a “paying and near their plan limit” cohort once, then reuse the same group as a flag target, a survey audience, and an alert.

Read about cohorts →

You've exported from Stripe for the last time

Connect Stripe and never open a spreadsheet to answer one question again.