Agent setup: authorize Sight MCP and ask your agent to call get_tracking_setup. It configures this integration automatically.

Ghost

Install Sight analytics on a Ghost CMS site by pasting the tracking snippet into Ghost's Code Injection panel — no plugin exists for Ghost, so this is a doc + snippet repo, not installable code.

Part of Sight, split across repos under the sightapp org — see sightapp/sight-backend's SPEC.md for the full picture, and tasks/plan.md there for how this repo fits the site-integrations roadmap (Track B).

Install

  1. In Ghost Admin, go to Settings → Advanced → Code Injection.
  2. Paste the snippet from snippet.html into the Site Footer box (placed just before </body>, applied to every page of the site).
  3. Replace YOUR_API_KEY with your project's API key from the Sight dashboard.
  4. Click Save.
<script src="https://api.usesight.dev/script.js?k=YOUR_API_KEY"></script>
<noscript>
  <img src="https://api.usesight.dev/t.gif?k=YOUR_API_KEY" alt="" style="display:none" />
</noscript>

(Ghost: How to use Code Injection)

What this records

  • Pageviews on every page, including client-side page transitions in Ghost themes that use them (the script hooks history.pushState/popstate).
  • The <noscript> pixel as a fallback for visitors with JavaScript disabled, and for AI crawlers that fetch pages but don't execute JS.

Verify it's working

Visit your live site once, then check Sight dashboard → Overview (or GET /api/v1/query/overview) — a pageview for the path you visited should appear within a few seconds.

Source repository