Skip to main content
Ghost → GA4Integration guide

Connecting Ghost memberships to GA4

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. GA4 is where the business goes to understand what happened, which makes an unattributed conversion there expensive in decisions rather than in ad spend. The join between them succeeds or fails on one thing: whether the GA4 client_id reaches the Ghost paid subscription before the conversion happens, because GA4 can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Ghost memberships to GA4: free signup and paid upgrade as one user

Store the _ga client_id against the Ghost member ID when Portal signup happens. Send sign_up at free signup, then a Measurement Protocol purchase when the Stripe subscription starts, using the stored client_id and member ID as user_id, since upgrades happen in other browsers. Add signup date, use user-scoped dimensions, and disable any browser purchase.

Ghost has its own member attribution, showing the referrer and post behind each signup and paid conversion, so the reason to send Ghost data to GA4 is to put it beside the rest of your traffic reporting, joined to the same user. That join only holds if the free signup and the paid upgrade months later are sent with the same identity.

When a visitor signs up through Portal, read the _ga client_id on your page and store it against the member in a table you control, keyed on the Ghost member ID. Send sign_up at the free signup, then purchase via Measurement Protocol when the Stripe subscription starts, with the stored client_id and the member ID as user_id. Paid upgrades often follow a tap on an emailed link, in a different browser where the live client_id is new, which is why the stored one is the one to send.

Keep the free-to-paid lag visible: add the signup date as a parameter and build an exploration of upgrades by first user source. The upgrade event will have no live session to join, so use user-scoped dimensions for it. Check the theme and code injection too; if something already fires a browser purchase on the Stripe success return, turn it off before sending your own.

Ghost → GA4 · what breaks

Why this join usually fails — Ghost → GA4

  1. 01

    The GA4 client_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

    Everything lands under (direct)/(none)

    The classic Measurement Protocol symptom, and it always means the same thing: the client_id was missing or wrong, so GA4 had no session to attach the event to and invented a new user.

  4. 04

    Nothing reconciles afterwards

    GA4 DebugView shows events arriving with their parameters, and Realtime confirms the user and session they attached to. Neither tells you whether you are double-counting — for that, compare GA4's conversion count against the source system's record for the same window.

Ghost → GA4 · the fix

What working looks like — Ghost → GA4

  • The GA4 client_id on every subscription

  • Conversions arriving in GA4

    Conversions appear in GA4 attributed to the original session's source and medium, so acquisition reporting reflects what actually drove revenue.

  • Reconciled against the source

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

Ghost → GA4 · architecture

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

    GA4 needs a click to match

    GA4 needs the client_id to attach a server event to the user and session that produced the click. Without it there is no attribution to inherit and the event is orphaned.

  3. 3

    The identifier is the bridge

    The GA4 client_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

    GA4 has no built-in deduplication for Measurement Protocol. If the browser also sends the event, it counts twice. The only reliable approach is to decide per event which side sends it, and enforce that decision — GA4 will not protect you from your own duplicates.

Ghost → GA4 · normal or broken

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

Normal, not a fault

  • The GA4 client_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

    GA4 has no built-in deduplication for Measurement Protocol. If the browser also sends the event, it counts twice. The only reliable approach is to decide per event which side sends it, and enforce that decision — GA4 will not protect you from your own duplicates.

  • Reconciles with the source

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

Actually broken

  • The GA4 client_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 classic Measurement Protocol symptom, and it always means the same thing: the client_id was missing or wrong, so GA4 had no session to attach the event to and invented a new user.

  • Nobody has reconciled it

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

Ghost → GA4 · diagnose

Diagnostic order — Ghost → GA4

  1. 01

    Count subscriptions carrying the GA4 client_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 whether server events carry a session and a source

    In GA4 Realtime or DebugView, find the event and look at its session and traffic source. A brand-new user with no source on every server event is the missing-client_id signature.

  5. 05

    Read the match rate, not the success message

    GA4 DebugView shows events arriving with their parameters, and Realtime confirms the user and session they attached to. Neither tells you whether you are double-counting — for that, compare GA4's conversion count against the source system's record for the same window.

Ghost → GA4 · prove

How it gets proven — Ghost → GA4

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 GA4 client_id confirmed present on a live subscription.
  • Server events confirmed in DebugView attaching to an existing session with the original traffic source intact.
  • Paid subscription starts reconciled against imported conversions over a window long enough to include the upgrade lag.

Ghost → GA4 · free audit

What we check in the free audit

  • Count subscriptions carrying the GA4 client_id
  • Follow one real conversion end to end
  • Measure the free-to-paid rate and the lag
  • Check whether server events carry a session and a source
  • 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 → GA4 · when not to buy

When you don't need this — Ghost → GA4

  • If GA4 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 GA4 client_id.
  • If you have no paid tier, free signups are the honest metric and there is no revenue event to import.
  • GA4 is reporting, not bidding. If your problem is ad platform optimization, fix the ad platform destination first — GA4 will not change what any campaign does.

Ghost → GA4 · what we deliver

What gets built — Ghost → GA4

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

    Measurement Protocol events with the client_id, session_id and the correct measurement ID and API secret, sent server-side.

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

Store the client_id at free signup, then send purchase from the Stripe subscription start with that client_id and the member ID as user_id. Compare upgrades by first user source.

Free · 30 min

Get Ghost and GA4 joined properly

Free30 minutesNo obligation