# Ghost analytics

> Live analytics for Ghost publications: paste one line into Code injection and see who is reading now, which posts hold them and where readers came from, with no cookies.

Source: https://mettr.app/integrations/ghost

## One line in Code injection

In Ghost's admin, open **Settings**, **Code injection**, paste the script into **Site header**, and save:

```html
<script defer data-key="pk_your_site_key" src="https://mettr.app/script.js"></script>
```

It runs on every post and page, on Ghost(Pro) or a Ghost you host.

## What you see, as it happens

- **Who is reading now**, which post, from which country and device.
- **Where readers came from**: search, social, Hacker News, another newsletter, a campaign with UTM tags.
- **Which posts hold them**: how far down each post is read and for how long, not only how many opened it.
- **Outbound clicks**: which links in your posts readers follow.
- **[Web Vitals](/features/web-vitals)** of every page, for real readers.

A post shared somewhere big shows within seconds, as readers arrive.

## No cookie banner for mettr

The script sets no cookies and mettr keeps no reader's address. [Privacy first](/privacy-first) explains how.

## Crawlers too, with Cloudflare

A script in the page never sees Googlebot, GPTBot or ClaudeBot reading your posts. If your domain is proxied by Cloudflare, the [Cloudflare Worker](/integrations/cloudflare) sends crawler visits and 404s as well. [Read the setup guide](/docs/site-builders#ghost).
