Connecting Ghost to Segment
Ghost is publishing with memberships attached, so the commercial event is a paid subscription rather than a purchase. 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 member 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: identify on member uuid, track paid starts
Add Analytics.js via code injection and identify with the member uuid from the theme. Turn Ghost member webhooks and Stripe subscription events into server track calls with that uuid. Name free signups and paid starts differently, map only the paid event, valued, with the Stripe subscription ID as messageId, to ad destinations, and pass consent.
Segment on a Ghost site has two halves. The browser half is Analytics.js added through code injection, with identify called from the theme template using the member uuid whenever a member is signed in. The server half takes Ghost's member webhooks, and Stripe's subscription events for renewals and cancellations, and turns them into track calls with the same uuid as userId. A Source Function or a small relay can do that; there is no reason for these events to depend on the reader's browser.
The fan-out risk on Ghost is specific: free signups. If they and paid starts share an event name, every connected ad destination receives newsletter signups as conversions. Use separate names, something like Member Signed Up and Subscription Started, give the paid one a value and the Stripe subscription ID as messageId, and map only it to ad destinations.
Consent is easy to miss here because Ghost does not ship a cookie banner of its own. Whatever consent tool you added has to set the consent state that travels in Segment's event context, or Segment has nothing to filter on. Click IDs belong as properties on the signup and subscription events, read from the member labels or first-party storage where you saved them at landing.
Ghost → Segment · what breaks
Why this join usually fails — Ghost → Segment
- 01
The userId and anonymousId never reaches Ghost
Signup and checkout are Ghost-hosted with limited customisation, and free members vastly outnumber paid ones. An identifier captured on a post has to survive into the member record, which Ghost only partially supports.
- 02
Free members outnumbering paid by an order of magnitude
Ghost's newsletter signup is frictionless by design. Sending free signups as conversions teaches an ad platform to find people who subscribe to free newsletters.
- 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.
- 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 member
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 → Segment · architecture
How Ghost and Segment actually connect
- 1
Ghost holds the truth
Ghost's payments run through a connected Stripe account, so Stripe is authoritative for money and Ghost is authoritative for membership state. They should agree and reconciling them is worth doing once.
- 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
The identifier is the bridge
The userId and anonymousId, captured at the visit and carried into the Ghost member.
- 4
The event source decides reliability
Send paid subscription starts at expected lifetime value. Free member signups are leads and belong in a separate event entirely.
- 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 member
Sent from the Ghost member webhook, or the connected Stripe subscription event
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
Actually broken
The userId and anonymousId missing on most records
Signup and checkout are Ghost-hosted with limited customisation, and free members vastly outnumber paid ones. An identifier captured on a post has to survive into the member record, which Ghost only partially supports.
Sent from the browser
Ghost's newsletter signup is frictionless by design. Sending free signups as conversions teaches an ad platform to find people who subscribe to free newsletters.
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
Ghost → Segment · diagnose
Diagnostic order — Ghost → Segment
- 01
Count members carrying the userId and anonymousId
- 02
Follow one real conversion end to end
- 03
Check whether free and paid signups share a conversion action
If they do, the free tier is setting your bids and paid acquisition is invisible.
- 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.
- 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
Source of truth
Ghost's member records with paid subscription status, cross-checked against the Stripe account behind them.
- The userId and anonymousId confirmed present on a live member.
- An anonymous session confirmed aliased to a known user, with the event visible in at least one downstream destination.
- A paid subscription confirmed to carry lifetime value with free signups excluded.
Ghost → Segment · free audit
What we check in the free audit
- Count members carrying the userId and anonymousId
- Follow one real conversion end to end
- Check whether free and paid signups share a conversion action
- Check identity resolution before checking anything downstream
- Read the match rate, not the success message
Checked against
Ghost's member records with paid subscription status, cross-checked against the Stripe account behind them.
Free30 minutesNo obligation
Ghost → Segment · when not to buy
When you don't need this — Ghost → Segment
- Measure identifier coverage yourself first — pull your last hundred members and count how many carry the userId and anonymousId.
- If your Ghost site is a free newsletter monetised by sponsorship, there is no subscription conversion to measure here.
- 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
Carry the identifier through the signup URL into member labels or via the connected Stripe checkout's metadata, and verify on a real paid signup which survives.
Event source: the Ghost member webhook, or the connected Stripe subscription event
Send paid subscription starts at expected lifetime value. Free member signups are leads and belong in a separate event entirely.
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
Subscription cancellations reverse the lifetime value claimed.
Written guarantee
95%+ tracking accuracy
Measured against Ghost's member records with paid subscription status, cross-checked against the Stripe account behind them.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Ghost → Segment questions, answered
Check Ghost's integrations directory; most setups add Analytics.js through code injection and send member and subscription events server-side from Ghost webhooks, using the member uuid as userId.
Give free and paid signups different event names and map only the paid one to each ad destination.
Almost always because the userId and anonymousId never reached the Ghost member. Signup and checkout are Ghost-hosted with limited customisation, and free members vastly outnumber paid ones. An identifier captured on a post has to survive into the member record, which Ghost only partially supports. Measure coverage before debugging the dispatch.
Segment identifies people by anonymousId before they are known and userId afterwards, and the alias between them is what stitches a session to a customer. Click identifiers travel as event properties or traits rather than as a matching key — Segment does not match anything itself, it forwards. That distinction changes the whole design: get the identity resolution right and every downstream destination inherits it.
The Ghost member webhook, or the connected Stripe subscription event. Send paid subscription starts at expected lifetime value. Free member signups are leads and belong in a separate event entirely.
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.
More on Ghost → Segment
- Ghost → SegmentConnecting Ghost memberships to Segment
- Stripe → SegmentConnecting Stripe to Segment
- PayPal → SegmentConnecting PayPal to Segment
RELATED GUIDES
Where Ghost → Segment fits in the rest of your tracking
- Contentful → SegmentConnecting Contentful to Segment
- Craft → SegmentConnecting Craft CMS to Segment
- Webflow → SegmentConnecting Webflow to Segment
- Ghost → BigQueryConnecting Ghost memberships to BigQuery
- Ghost → SnowflakeConnecting Ghost memberships to Snowflake
- Local servicesConversion tracking for local businesses, where most conversions bypass the website
- Duda → SegmentConnecting Duda to Segment
- AEM → SegmentConnecting Adobe Experience Manager to Segment
Free · 30 min
Get Ghost and Segment joined properly
Free30 minutesNo obligation
