Connecting Ghost to Matomo
Ghost is publishing with memberships attached, so the commercial event is a paid subscription rather than a purchase. Matomo can be self-hosted with no third party in the chain, which makes it the one analytics destination where the data genuinely never leaves infrastructure you control. The join between them succeeds or fails on one thing: whether the first-party visitor ID reaches the Ghost member before the conversion happens, because Matomo can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Which Ghost posts earn signups: tracking members in Matomo
Set Matomo's User ID from the member UUID in your Ghost theme template, then record confirmed signups server-side from the member.added webhook through the Matomo HTTP Tracking API under that User ID. A confirmation-page goal credits the email client after the magic-link hop. Keep free signups and paid upgrades as separate goals, checked against Ghost's own attribution.
Matomo suits a lot of Ghost publishers for the same reason they chose Ghost: both can run on your own server, and neither sends readers to a third party. The question this pair answers best is which posts produce members, and that needs two things joined: the pageviews Matomo records in the browser, and the signup Ghost records on its side.
The signup is the awkward part. Ghost Portal handles signup as an overlay, then sends a magic link, and the member is confirmed when that link is clicked, often inside a mail app's browser with a different Matomo visitor ID. A goal on the confirmation page therefore credits the email client, not the post. Two fixes work together: set Matomo's User ID from the member's UUID in your theme template (Ghost exposes the logged-in member to Handlebars, which code injection cannot read), and record the confirmed signup server-side from the member.added webhook through the Matomo HTTP Tracking API against that same User ID.
Ghost's own dashboard also shows which post a member signed up from, so you have a free second opinion. If Matomo and Ghost disagree sharply about the top signup posts, the magic-link hop is usually why. Keep free signups as one goal and paid upgrades as another; mixing them makes every post look like it earns revenue.
Ghost → Matomo · what breaks
Why this join usually fails — Ghost → Matomo
- 01
The first-party visitor ID 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
Owning the pipeline means owning the outage
The advantage is that nothing blocks it. The cost is that when the tracking database fills or falls behind on a weekend, the data is gone and no vendor is paging anyone. Hosted tools fail more visibly.
- 04
Nothing reconciles afterwards
Matomo exposes raw visit logs, so you can inspect the actual hit rather than an aggregate. Check the log, and check ingestion lag alongside it.
Ghost → Matomo · the fix
What working looks like — Ghost → Matomo
The first-party visitor ID on every member
Conversions arriving in Matomo
The event lands in your own database and is queryable directly, including the raw log, which most analytics products do not expose.
Reconciled against the source
Ghost → Matomo · architecture
How Ghost and Matomo 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
Matomo needs a click to match
The site ID, the visitor identifier and the event or ecommerce order. Self-hosted instances additionally need the tracker endpoint reachable and the database keeping up, which hosted tools do not fail at.
- 3
The identifier is the bridge
The first-party visitor ID, 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
Matomo deduplicates ecommerce orders on order ID. Without one, a refreshed confirmation page records a second order.
Ghost → Matomo · normal or broken
Working vs. broken, side by side — Ghost → Matomo
Normal, not a fault
The first-party visitor ID present on the member
Sent from the Ghost member webhook, or the connected Stripe subscription event
Deduplicated correctly
Matomo deduplicates ecommerce orders on order ID. Without one, a refreshed confirmation page records a second order.
Reconciles with the source
Actually broken
The first-party visitor ID 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
The advantage is that nothing blocks it. The cost is that when the tracking database fills or falls behind on a weekend, the data is gone and no vendor is paging anyone. Hosted tools fail more visibly.
Nobody has reconciled it
Ghost → Matomo · diagnose
Diagnostic order — Ghost → Matomo
- 01
Count members carrying the first-party visitor ID
- 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 tracker reachability and database lag before debugging any tag
On self-hosted analytics the answer is infrastructure more often than instrumentation.
- 05
Read the match rate, not the success message
Matomo exposes raw visit logs, so you can inspect the actual hit rather than an aggregate. Check the log, and check ingestion lag alongside it.
Ghost → Matomo · prove
How it gets proven — Ghost → Matomo
Source of truth
Ghost's member records with paid subscription status, cross-checked against the Stripe account behind them.
- The first-party visitor ID confirmed present on a live member.
- Orders reconciled against the Matomo ecommerce log with order-ID deduplication verified.
- A paid subscription confirmed to carry lifetime value with free signups excluded.
Ghost → Matomo · free audit
What we check in the free audit
- Count members carrying the first-party visitor ID
- Follow one real conversion end to end
- Check whether free and paid signups share a conversion action
- Check tracker reachability and database lag before debugging any tag
- 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 → Matomo · when not to buy
When you don't need this — Ghost → Matomo
- Measure identifier coverage yourself first — pull your last hundred members and count how many carry the first-party visitor ID.
- If your Ghost site is a free newsletter monetised by sponsorship, there is no subscription conversion to measure here.
- If you have no privacy or ownership requirement and no team to run it, a hosted product removes the only real cost of this one.
Ghost → Matomo · what we deliver
What gets built — Ghost → Matomo
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 Matomo
The Matomo HTTP Tracking API, posted server-side from your order system.
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 → Matomo questions, answered
Record the confirmed signup server-side from Ghost's member.added webhook, and set Matomo's User ID from the member UUID in your theme so the signup joins the visits that led to it.
The signup is confirmed by clicking Ghost's magic link, often in a mail app, which starts a new visit. Join on User ID instead of relying on the confirmation pageview.
Almost always because the first-party visitor ID 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.
Matomo sets its own first-party cookie and, when self-hosted on your domain, is not a third-party request at all. That means ad blockers and browser tracking-prevention affect it far less than a hosted analytics tag — one of the few genuine measurement advantages available under current privacy conditions.
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.
Matomo exposes raw visit logs, so you can inspect the actual hit rather than an aggregate. Check the log, and check ingestion lag alongside it.
More on Ghost → Matomo
- Ghost → MatomoConnecting Ghost memberships to Matomo
- Ghost → Google AdsConnecting Ghost to Google Ads
- Ghost → MetaConnecting Ghost to Meta Conversions API
RELATED GUIDES
Where Ghost → Matomo fits in the rest of your tracking
- Webflow → MatomoConnecting Webflow to Matomo
- Duda → MatomoConnecting Duda to Matomo
- Sitecore → MatomoConnecting Sitecore to Matomo
- Ghost → MixpanelConnecting Ghost memberships to Mixpanel
- Ghost → PostHogConnecting Ghost memberships to PostHog
- Local servicesConversion tracking for local businesses, where most conversions bypass the website
- Sanity → MatomoConnecting Sanity to Matomo
- Statamic → MatomoConnecting Statamic to Matomo
Free · 30 min
Get Ghost and Matomo joined properly
Free30 minutesNo obligation
