How to Add Orbit Analytics to a Ghost Site

Ghost ships with a dedicated Code Injection field built for exactly this — pasting a script into the site header without touching theme files, available the same way whether you're self-hosting or on Ghost(Pro).

Setup steps

  1. Go to Settings > Code injectionIn the Ghost Admin panel, this is a dedicated field for raw HTML/JS, available on both self-hosted Ghost and Ghost(Pro) hosted plans.
  2. Paste the script into 'Site Header'Add the Orbit <script> tag to the Site Header field, which Ghost injects into the <head> of every page on the site.
  3. SaveCode injection settings apply immediately after saving — no separate build or deploy step is needed on a standard Ghost install.
  4. Verify on a published postOpen a live post or page (not the admin preview) and confirm the visit registers in Orbit's real-time view.

Frequently asked questions

Is Code Injection available on every Ghost plan?

Yes — Site Header/Footer code injection is a core Ghost feature available on all supported plans, whether self-hosted or on Ghost(Pro).

Does this track members-only or paywalled content?

Yes — the script loads in the page header regardless of whether the underlying post is public or gated behind a Ghost membership tier, as long as the page itself renders.

Will this conflict with Ghost's own built-in analytics?

No — newer Ghost versions include basic first-party analytics, but that runs independently of any script added via Code Injection, so the two don't interfere.

Does Code Injection apply across custom theme templates too?

Yes — Site Header injection happens at the {{ghost_head}} handlebars helper, which every standard Ghost theme includes, so it applies regardless of which theme you're running.

See it on your own site

Free for 1 website, no card required.