Skip to main content
To add tinyanalytics to a Ghost site, paste the tracking snippet into the Site Header code injection. It applies to every page, works with any theme, and needs no theme editing.

Before you start

  • A tinyanalytics site. If you don’t have one yet, follow the Quickstart.
  • Your snippet from Settings → Tracking in your dashboard.

Add the snippet to Code injection

1

Open Code injection

In Ghost admin, go to Settings → Code injection.
2

Paste into Site Header

Paste your tinyanalytics snippet into the Site Header field:
3

Save

Click Save. The snippet is now on every page of your published site.
Replace YOUR_SITE_ID with your real site ID, and copy the full snippet from Settings → Tracking if you’ve toggled any options.

Verify

Open your Ghost site in a browser, then check Realtime in your dashboard for your visit. See Verify your setup for the full check.
Your install is working when your own visit appears in Realtime in your dashboard.

Install on any platform

The universal method and other platforms.

Configure the tracking script

Every data-* option you can set.

Track custom events

Measure signups and clicks.

Verify your setup

Confirm tracking works.