Skip to main content
Ghost → MixpanelIntegration guide

Connecting Ghost memberships to Mixpanel

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. Mixpanel is a product analytics tool, not an ad platform, which means it has no attribution model of its own and will faithfully report whatever event schema you give it — including a bad one. The join between them succeeds or fails on one thing: whether the distinct_id reaches the Ghost paid subscription before the conversion happens, because Mixpanel can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Ghost to Mixpanel: identify members so the paid upgrade connects

Call identify with the Ghost member ID at Portal signup and on every signed-in page, since magic-link logins on other devices otherwise split readers. Send money events server-side from Ghost's member webhooks with Stripe amounts, an $insert_id combining member ID and Stripe subscription ID, and the signup post as a property.

Mixpanel suits a Ghost publication that wants funnels from first article read to free signup to paid upgrade, broken down by the post or campaign that started it. The distinct_id must be tied to the Ghost member: call identify with the member's ID when Portal confirms a signup and whenever a signed-in member loads a page, through code injection or your theme, so the anonymous reading history merges onto the member.

Send the money events from the server, not the browser. Ghost's member webhooks tell you when a member is added and when status changes to paid, and Stripe confirms the amount. Use an $insert_id built from the member ID and the Stripe subscription ID so a retried webhook doesn't create a second upgrade. Attach the post the member signed up from as a property; recent Ghost versions record a signup source and referring post, so check yours. Then a funnel can be cut by article.

The Ghost-specific break is the magic-link login. Members sign in by clicking an email link, often on a different device than the one they read on, and each device starts a new anonymous distinct_id. Without identify on every signed-in page view, one reader becomes three Mixpanel users and the free-to-paid rate looks worse than it is.

Ghost → Mixpanel · what breaks

Why this join usually fails — Ghost → Mixpanel

  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

    One event schema, two teams, no agreement

    Marketing names an event Purchase, the product team names it purchase_completed, and both are sent. Mixpanel treats them as unrelated, every funnel silently splits, and two teams spend a quarter arguing about which number is right when both are.

  4. 04

    Nothing reconciles afterwards

    Mixpanel shows events in the live view within moments. Check that the distinct_id matches the signed-in user rather than a lingering anonymous ID, because that is the failure that quietly breaks every cross-signup funnel.

Ghost → Mixpanel · the fix

What working looks like — Ghost → Mixpanel

  • The distinct_id on every subscription

  • Conversions arriving in Mixpanel

    The event lands on the user profile and becomes available in funnels, retention and cohort analysis.

  • Reconciled against the source

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

Ghost → Mixpanel · architecture

How Ghost and Mixpanel 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

    Mixpanel needs a click to match

    Mixpanel needs a distinct_id, an event name and its properties. Events without a distinct_id are rejected; events with the wrong one land on a stranger's profile.

  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

    Mixpanel deduplicates on $insert_id within a time window. Without it, a retried server request creates a second event, and because Mixpanel is where product decisions get made, that inflation ends up in a roadmap rather than in an ad report.

Ghost → Mixpanel · normal or broken

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

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

    Mixpanel deduplicates on $insert_id within a time window. Without it, a retried server request creates a second event, and because Mixpanel is where product decisions get made, that inflation ends up in a roadmap rather than in an ad report.

  • Reconciles with the source

    Mixpanel'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

    Marketing names an event Purchase, the product team names it purchase_completed, and both are sent. Mixpanel treats them as unrelated, every funnel silently splits, and two teams spend a quarter arguing about which number is right when both are.

  • Nobody has reconciled it

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

Ghost → Mixpanel · diagnose

Diagnostic order — Ghost → Mixpanel

  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

    List every event name in the project and look for near-duplicates

    Case differences, tense differences and synonyms are the usual finding, and they are cheap to fix before a year of data is built on them.

  5. 05

    Read the match rate, not the success message

    Mixpanel shows events in the live view within moments. Check that the distinct_id matches the signed-in user rather than a lingering anonymous ID, because that is the failure that quietly breaks every cross-signup funnel.

Ghost → Mixpanel · prove

How it gets proven — Ghost → Mixpanel

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 identity aliasing verified across the signup boundary.
  • Paid subscription starts reconciled against imported conversions over a window long enough to include the upgrade lag.

Ghost → Mixpanel · 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
  • List every event name in the project and look for near-duplicates
  • 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 → Mixpanel · when not to buy

When you don't need this — Ghost → Mixpanel

  • If Mixpanel 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 already have the same events in a warehouse and nobody is running product analysis on them, adding Mixpanel adds a second source of truth rather than an answer.

Ghost → Mixpanel · what we deliver

What gets built — Ghost → Mixpanel

  • 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 Mixpanel

    The Mixpanel ingestion API, posted server-side from your backend with the distinct_id and event properties.

  • 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 → Mixpanel questions, answered

Call identify with the Ghost member ID whenever a signed-in member loads a page, and send server events with the same ID. Magic-link logins on new devices otherwise create extra users.

Free · 30 min

Get Ghost and Mixpanel joined properly

Free30 minutesNo obligation