PostHog plus Stripe revenue, per source

PostHog is great for product analytics in your main app. Seeing which channel paid, across that app and your side projects, is a different job.

Updated Dec 2, 2026.

The short answer.

Connect your PostHog project to Appsdash with a personal API key (Query: read), and Stripe with a read-only key. Appsdash reads PostHog's pageviews for your domain as daily numbers, shows them next to revenue, MRR and churn per app, and, with its snippet passing the visit id into checkout, ties each sale to its source.

What PostHog does here

PostHog's docs describe revenue analytics as a beta: Stripe connects as a data warehouse source, and Chargebee, Polar and RevenueCat are listed as coming soon. Linking Stripe customers to PostHog persons is a manual step. If your product lives in PostHog and you want revenue inside it, that is a reasonable path.

Where Appsdash fits

A common setup: the main app on PostHog, side apps on Umami or nothing. Appsdash reads each one where it is (PostHog, Umami, Plausible, GA4) and puts every app in one table with revenue from Stripe, Paddle, Lemon Squeezy, Polar or Whop.

From PostHog we read only $pageview events on your domain and its subdomains (a staging subdomain counts too; localhost and other domains in the same project are left out), as UTC days: visitors, pageviews, visits, bounces, pages, sources, campaigns, countries, devices.

Tying a sale to its source

Revenue per source in Appsdash comes from a visit id the snippet makes and your checkout passes on (client_reference_id or metadata on Stripe). The Appsdash snippet can run beside posthog-js; once it counts, the PostHog connection hands over for that app and PostHog keeps everything it already had.

How to set it up.

14 days of everything, no card. Then Solo from $9 a month for one app, or Studio from $19 for every app.

  1. Make a PostHog personal API key. Scope Query: read. Note your project ID (digits) and whether you're on US Cloud, EU Cloud or self-hosted.
  2. Add the app and pick PostHog. History imports in 31-day chunks, then the last 3 days are read every hour.
  3. Connect Stripe. Read-only key with Checkout Sessions read, so sales can carry the visit id.
  4. Pass the visit id at checkout. One line in the route that creates the Checkout Session.

The checkout line.

Lemon Squeezy, Polar, Whop and Stripe Payment Links have their own versions in Settings > Revenue.

Paddle.js: Paddle.Checkout.openjs
Paddle.Checkout.open({
  items: [{ priceId: "pri_...", quantity: 1 }],
  customData: { appsdash_visit: window.appsdash?.visit?.() ?? "" },
});

Keep any customData you already send (like product): add appsdash_visit beside it. Paddle copies it onto renewals.

Stripe Checkout: Your checkout route (server)js
// browser: send the visit id with the request that makes the session
fetch("/api/checkout", { method: "POST", body: JSON.stringify({ priceId, visit: window.appsdash?.visit?.() ?? "" }) });

// server
const session = await stripe.checkout.sessions.create({
  mode: "subscription", // or "payment"
  line_items: [{ price: priceId, quantity: 1 }],
  client_reference_id: visit || undefined,
  success_url, cancel_url,
});

Already use client_reference_id? Put it in metadata: { appsdash_visit: visit } instead. The key needs Checkout Sessions read.

What it doesn't do.

  • PostHog's query API has hourly budgets; a very large project may need the import started again in an hour.
  • Only pageviews come across: PostHog events, persons, feature flags and recordings stay in PostHog.
  • Our PostHog reader was built against PostHog's docs and a test server; tell us if a project reads wrong.

Questions.

Does Appsdash replace PostHog?

Not for product analytics. It reads PostHog's traffic so your apps sit side by side with their revenue.

EU Cloud?

Yes. Pick EU Cloud in the picker, or paste your self-hosted PostHog URL.

Which key scope is needed?

A personal API key with Query: read, plus the project ID. Listing projects would need another scope, so we ask for the ID instead.

See which app and which channel pays.

Try Appsdash free

14 days free · no card