Skip to content
Website builders

Ghost analytics for posts, newsletters and members

2 min read · Updated · By the Reveata team

Short answerPaste the Reveata snippet into Ghost's Site header code injection to track every page on Ghost(Pro) or self-hosted Ghost, with no theme change. A page only new members see turns each new membership into a goal with no code.

Ghost publishers sell memberships, and the question that matters is which posts, newsletters and referrers turn readers into paying members. Reveata answers it by joining the Stripe account Ghost uses with the member's visits.

What you get

  • Every page counted on Ghost(Pro) and self-hosted Ghost, with no theme change for tracking.
  • Paid memberships as revenue, from Stripe, with monthly and yearly renewals counted as renewals.
  • MRR and churn from the membership subscriptions (Stripe subscription analytics).
  • Each membership credited to the member's visits, including the visit that first brought them.
  • New-member goals with no code, from a page only new members see.

How to set it up

  1. In Ghost Admin, open Settings → Advanced → Code injection, paste the snippet into Site header and save. Ghost's own docs are at ghost.org/docs (opens in a new tab).
  2. In Reveata, open Settings → Payments and connect the same Stripe account Ghost shows under Settings → Membership.
  3. In your theme's default.hbs, just before </body>, add a call that identifies signed-in members by email, then upload the theme again. Code injection can't run theme helpers such as {{@member.email}}, which is why this goes in the theme. The code is in Revenue from Ghost memberships.

How memberships are matched to visits

Ghost creates its Stripe checkouts itself, so they carry no Reveata visitor id. When Stripe reports a payment, Reveata looks for a visitor identified with the Stripe customer's email, which Ghost sets to the member's.

  • Order doesn't matter. If a member pays before any page identified them, the payment is retried every hour for 90 days.
  • Same browser, full history. All earlier anonymous visits in that browser count, so first-touch attribution still finds the post that first brought them.
  • Another device. If they only sign in elsewhere, that device's visits get the credit.

Only identify members when your privacy policy covers it.

Limits

  • Free members pay nothing, so count free signups with a goal.
  • Everything else paid through that Stripe account is imported too. Ghost recommends a Stripe account of its own.
  • Ghost's own analytics keep working alongside Reveata; there is nothing to turn off.

Frequently asked questions

Can I serve the script from my own domain?

Yes. On Ghost(Pro), use the managed proxy with one DNS record. Self-hosted Ghost behind NGINX or Caddy can proxy the script itself (NGINX, Caddy).

Does my .ghost.io address count as the same site?

It is a different host from your custom domain. Add the website with the address readers use.

How do I know which newsletter brought a member?

Tag the links in your newsletter with UTM parameters or ?ref=. The visit gets that campaign, and the membership follows the visit. See newsletter attribution.

See it with your own numbersReveata ties every visit and sale to the source that brought it. Add your website in a minute.
Get started
Was this page useful?
IntegrationStripe subscription analytics by acquisition channelWith Stripe connected, Reveata reads your subscriptions and invoices to show MRR and its movements, and groups paying subscriptions by the first-touch channel of each customer, so you can see which channels bring subscribers who stay.IntegrationBubble app analytics with ReveataPaste the Reveata snippet into Bubble's header script setting and deploy to Live. Every page and in-page navigation is counted, and signed-in users you identify with a Run javascript workflow are linked to their visits.IntegrationCarrd analytics for one-page sitesAdd the Reveata snippet to your Carrd site as a hidden Embed element placed in the head, then publish. Every visit is counted with its source, so you can see which links and channels bring signups and sales.IntegrationFramer analytics with sales credited to visitsAdd the Reveata snippet in Framer's Custom Code settings at the end of the head, on all pages, and publish. The script follows Framer's page changes, and sales from the checkouts your buttons link to are credited to their visits.IntegrationSquarespace analytics with Commerce orders matched to visitsPaste the Reveata snippet into Squarespace's Code Injection header and add a short call to the Order Confirmation Page field. Each order is then credited to the visitor who just bought.IntegrationWebflow analytics with revenue attributionPaste the Reveata snippet into Webflow's site-wide Head code and publish. Every page is counted, and sales from the checkouts your pages link to are credited to the visits that brought the buyer.