Skip to main content
Ghost → PostHogIntegration guide

Connecting Ghost memberships to PostHog

Ghost runs on your own domain with Stripe underneath, which makes it the rare creator platform where the whole chain is genuinely yours and attribution can actually work end to end. PostHog can be self-hosted, which changes the calculus entirely: the data stays on infrastructure you control, and so does the responsibility for everything that goes wrong with it. The join between them succeeds or fails on one thing: whether the distinct_id reaches the Ghost paid subscription before the conversion happens, because PostHog can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

PostHog funnels from free Ghost member to paid subscriber

With the theme identifying members by Ghost member UUID, send paid starts from your server when webhooks show free changing to paid: UUID as distinct_id, tier, interval and first charge, and an event UUID from the Stripe subscription ID. Track cancellations separately, use long funnel windows, and avoid double revenue with PostHog's Stripe source.

PostHog is good at the question Ghost's dashboard answers only in aggregate: how long free members take to pay, and what they read before they do. If the theme already identifies logged-in members by their Ghost member UUID, every post a free member reads is on the same PostHog person as the upgrade that comes later.

Send the paid subscription start from your server, not the Stripe return page. Ghost's member webhooks show the status change from free to paid; post a PostHog event with the member UUID as distinct_id, the tier, interval and first charge as properties, and an event UUID derived from the Stripe subscription ID so a retried webhook does not count twice. Then build a funnel from signed up to paid with a long conversion window, and a time-to-convert view: if the median upgrade comes after months, that is the window every ad platform you use needs to be judged against.

Record cancellations as their own event when the subscription is set to end, because Ghost keeps the member paid until the period ends. PostHog can also pull Stripe data directly in some setups; check whether its Stripe source covers what you need before writing extra events, and avoid counting revenue twice if you use both.

Ghost → PostHog · what breaks

Why this join usually fails — Ghost → PostHog

  1. 01

    The distinct_id never reaches Ghost

    Signup and checkout use Ghost's portal, which renders over your page, and Stripe Checkout may take the visitor off-domain at payment.

  2. 02

    The gap between free signup and paid upgrade

    Most Ghost publications convert a small single-digit percentage of free members to paid, months later. Optimizing on free signups finds people who like free things, and the paid number does not move.

  3. 03

    Self-hosting the analytics and the outage together

    The advantage of owning the pipeline is that nothing blocks it. The cost is that when the ingestion instance fills its disk on a Saturday, the events are gone and nobody is paged. Hosted tools fail differently and more visibly.

  4. 04

    Nothing reconciles afterwards

    PostHog shows events in the activity view within moments. On a self-hosted instance, check the ingestion lag as well — events that are queued are not events that are lost, and the two need different responses.

Ghost → PostHog · the fix

What working looks like — Ghost → PostHog

  • The distinct_id on every subscription

  • Conversions arriving in PostHog

    The event lands on the person profile and becomes available in insights, funnels and session replay.

  • Reconciled against the source

    Ghost memberships's own records are the reference, not either dashboard.

Ghost → PostHog · architecture

How Ghost and PostHog actually connect

  1. 1

    Ghost memberships holds the truth

    Ghost's free tier is a mailing list and its paid tier is revenue. The free-to-paid conversion rate is the number that decides whether acquisition is worth anything, and it is invisible if members are counted as one pool.

  2. 2

    PostHog needs a click to match

    PostHog needs a distinct_id, an event name and its properties. Self-hosted instances additionally need the ingestion endpoint reachable and the project API key correct, which is a class of failure hosted tools do not have.

  3. 3

    The identifier is the bridge

    The distinct_id, captured at the visit and carried into the Ghost paid subscription.

  4. 4

    The event source decides reliability

    Send paid subscription starts at a defensible annual value, and free signups as a separate lower-value action.

  5. 5

    Deduplication at the destination

    PostHog deduplicates on the event UUID where supplied. Without one, a retried batch duplicates, and on a self-hosted instance there is no vendor support desk to notice it for you.

Ghost → PostHog · normal or broken

Working vs. broken, side by side — Ghost → PostHog

Normal, not a fault

  • The distinct_id present on the subscription

    Visible on the record itself in Ghost memberships, not merely captured somewhere on the site.

  • Sent from the Ghost member and Stripe subscription record

  • Deduplicated correctly

    PostHog deduplicates on the event UUID where supplied. Without one, a retried batch duplicates, and on a self-hosted instance there is no vendor support desk to notice it for you.

  • Reconciles with the source

    PostHog's count and Ghost memberships's records agree within a few percent over a closed window.

Actually broken

  • The distinct_id missing on most records

    Signup and checkout use Ghost's portal, which renders over your page, and Stripe Checkout may take the visitor off-domain at payment.

  • Sent from the browser

    Most Ghost publications convert a small single-digit percentage of free members to paid, months later. Optimizing on free signups finds people who like free things, and the paid number does not move.

  • Counted twice, or not at all

    The advantage of owning the pipeline is that nothing blocks it. The cost is that when the ingestion instance fills its disk on a Saturday, the events are gone and nobody is paged. Hosted tools fail differently and more visibly.

  • Nobody has reconciled it

    The dashboard shows a number and no one has compared it to Ghost memberships.

Ghost → PostHog · diagnose

Diagnostic order — Ghost → PostHog

  1. 01

    Count subscriptions carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Measure the free-to-paid rate and the lag

    Both matter. If the median upgrade happens four months after signup, your attribution window is the constraint, not your campaigns.

  4. 04

    Check ingestion health and disk before debugging any missing event

    On self-hosted instances the answer is infrastructure far more often than it is instrumentation.

  5. 05

    Read the match rate, not the success message

    PostHog shows events in the activity view within moments. On a self-hosted instance, check the ingestion lag as well — events that are queued are not events that are lost, and the two need different responses.

Ghost → PostHog · prove

How it gets proven — Ghost → PostHog

Against Ghost memberships's own records, not against either platform's dashboard.

Source of truth

Ghost members with an active Stripe subscription, by start date, separated from free members.

  • The distinct_id confirmed present on a live subscription.
  • Purchase events reconciled per transaction against your billing system, with ingestion lag checked over the same window.
  • Paid subscription starts reconciled against imported conversions over a window long enough to include the upgrade lag.

Ghost → PostHog · free audit

What we check in the free audit

  • Count subscriptions carrying the distinct_id
  • Follow one real conversion end to end
  • Measure the free-to-paid rate and the lag
  • Check ingestion health and disk before debugging any missing event
  • Read the match rate, not the success message

Checked against

Ghost members with an active Stripe subscription, by start date, separated from free members.

Get my free conversion tracking audit

Free30 minutesNo obligation

Ghost → PostHog · when not to buy

When you don't need this — Ghost → PostHog

  • If PostHog already reports conversions that reconcile against Ghost memberships's records within a few percent, this join is working and there is nothing to buy.
  • Measure identifier coverage yourself first — pull your last hundred subscriptions and count how many carry the distinct_id.
  • If you have no paid tier, free signups are the honest metric and there is no revenue event to import.
  • If you have no reason to keep the data on your own infrastructure and no team to run it, the hosted product removes the only real downside of this one.

Ghost → PostHog · what we deliver

What gets built — Ghost → PostHog

  • Identifier capture into Ghost

    Capture on your own domain, persist in first-party storage, and attach the identifier to the member record so the upgrade weeks later still resolves.

  • Event source: the Ghost member and Stripe subscription record

    Send paid subscription starts at a defensible annual value, and free signups as a separate lower-value action.

  • Dispatch to PostHog

    The PostHog capture API, posted server-side from your backend to your own instance or to PostHog Cloud.

  • Reversals where they exist

    Cancellations inside the first period reverse.

Written guarantee

95%+ tracking accuracy

Measured against Ghost members with an active Stripe subscription, by start date, separated from free members.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Ghost → PostHog questions, answered

Identify members by Ghost member UUID in the theme, send the paid start server-side from Ghost's webhook, and build a funnel from signup to paid with a long conversion window.

Free · 30 min

Get Ghost and PostHog joined properly

Free30 minutesNo obligation