Skip to main content
Ghost → SegmentIntegration guide

Connecting Ghost memberships to Segment

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. Segment is a customer data platform rather than an ad network, so sending to it is not about matching a conversion — it is about putting one clean event where every other destination can read it. The join between them succeeds or fails on one thing: whether the userId and anonymousId reaches the Ghost paid subscription before the conversion happens, because Segment can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Ghost through Segment: member ID as userId, Stripe as the revenue

Load analytics.js via code injection and identify with the Ghost member ID, with status and tier as traits. Send Signed Up, Subscription Started with Stripe-confirmed amount, and Subscription Canceled server-side from Ghost webhooks and Stripe, carrying click IDs. Keep comped members out of Subscription Started, and remove ad pixels pasted in code injection to avoid double sending.

Segment fits a Ghost publication that sends member events to several tools at once: an email platform beyond Ghost's own, a couple of ad networks, a warehouse. Load analytics.js through Ghost's code injection, and call identify with the Ghost member ID when a signed-in member is on the page, with email, status and tier as traits. That identify call is what turns a reader's anonymous history into a member's.

Send the conversion events server-side from Ghost's member webhooks and Stripe: Signed Up when a member is added, Subscription Started with the plan amount once Stripe confirms payment, Subscription Canceled when it reverses. Carry the click identifiers captured on landing as properties, because each ad destination needs a different one. Send comped and gift members as a distinct event or not at all; downstream ad destinations will treat any Subscription Started as revenue.

The Ghost-specific trap is double sending. Some publishers also paste an ad pixel straight into code injection, so the same upgrade reaches an ad platform twice, once from the injected tag and once through Segment. Pick one path per destination, and pass the reader's consent choice as context so Segment can filter ad destinations.

Ghost → Segment · what breaks

Why this join usually fails — Ghost → Segment

  1. 01

    The userId and anonymousId 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 bad event multiplied across every destination

    Segment's value is fan-out, which is also its risk. An inconsistent identity or a duplicated event does not break one report — it breaks every connected tool simultaneously, and tracing it back is harder than debugging a direct integration.

  4. 04

    Nothing reconciles afterwards

    Segment's debugger shows events arriving and which destinations accepted them. Arriving is not the test — check a destination you care about and confirm the event landed there with the identity intact, then reconcile against your own records.

Ghost → Segment · the fix

What working looks like — Ghost → Segment

  • The userId and anonymousId on every subscription

  • Conversions arriving in Segment

    Events land in Segment and forward to every connected destination, warehouse included, on one shared definition.

  • Reconciled against the source

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

Ghost → Segment · architecture

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

    Segment needs a click to match

    Segment needs a consistent identity model — the same userId everywhere, an alias when an anonymous visitor becomes known, and event names that follow one spec. Feeding it inconsistent identities pushes the mess to every connected destination at once.

  3. 3

    The identifier is the bridge

    The userId and anonymousId, 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

    Segment deduplicates on messageId within a window. Because it fans out to many destinations, a duplicate here becomes a duplicate everywhere, which makes idempotent messageIds more important than in any single-destination integration.

Ghost → Segment · normal or broken

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

Normal, not a fault

  • The userId and anonymousId 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

    Segment deduplicates on messageId within a window. Because it fans out to many destinations, a duplicate here becomes a duplicate everywhere, which makes idempotent messageIds more important than in any single-destination integration.

  • Reconciles with the source

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

Actually broken

  • The userId and anonymousId 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

    Segment's value is fan-out, which is also its risk. An inconsistent identity or a duplicated event does not break one report — it breaks every connected tool simultaneously, and tracing it back is harder than debugging a direct integration.

  • Nobody has reconciled it

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

Ghost → Segment · diagnose

Diagnostic order — Ghost → Segment

  1. 01

    Count subscriptions carrying the userId and anonymousId

  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 identity resolution before checking anything downstream

    If anonymousId is never aliased to userId, every destination sees two people where there is one, and no downstream fix helps.

  5. 05

    Read the match rate, not the success message

    Segment's debugger shows events arriving and which destinations accepted them. Arriving is not the test — check a destination you care about and confirm the event landed there with the identity intact, then reconcile against your own records.

Ghost → Segment · prove

How it gets proven — Ghost → Segment

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 userId and anonymousId confirmed present on a live subscription.
  • An anonymous session confirmed aliased to a known user, with the event visible in at least one downstream destination.
  • Paid subscription starts reconciled against imported conversions over a window long enough to include the upgrade lag.

Ghost → Segment · free audit

What we check in the free audit

  • Count subscriptions carrying the userId and anonymousId
  • Follow one real conversion end to end
  • Measure the free-to-paid rate and the lag
  • Check identity resolution before checking anything downstream
  • 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 → Segment · when not to buy

When you don't need this — Ghost → Segment

  • If Segment 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 userId and anonymousId.
  • If you have no paid tier, free signups are the honest metric and there is no revenue event to import.
  • If you send to one or two destinations, Segment is infrastructure you do not need — direct integrations are simpler and cheaper. It earns its place at genuine fan-out.

Ghost → Segment · what we deliver

What gets built — Ghost → Segment

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

    Server-side track and identify calls with a stable messageId, consistent userId, and the click identifier carried as a trait or property.

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

Paste analytics.js into Ghost's code injection and call identify with the member ID for signed-in members. Send paid events from your server using Ghost webhooks and Stripe.

Free · 30 min

Get Ghost and Segment joined properly

Free30 minutesNo obligation