Skip to content

Install on Ghost

Paste the tag into Site header under code injection, which Ghost adds to the head of every page.

Ghost has a built-in code injection panel, so you do not need to edit the theme.

Where it goes

  1. Open code injection

    Settings › Code injection in Ghost admin.

  2. Paste into Site header

    Paste the tag into the Site header box and save. It is added to the head of every page of the site.

html
<script defer data-website-id="ws_XXXXXXXX" data-domain="yourstartup.com" src="https://statsy.co/js/script.js"></script>

If you maintain your own theme, default.hbs works too, but code injection survives theme changes and updates.

Confirm it works

Open a post in a private window and check Live. Ghost admin itself is a separate app and is not measured.

Newsletter emails are not pages

Ghost sends posts as email as well as publishing them. Email clients do not run scripts, so newsletter opens never appear in Statsy. What you can see is the click-through: add utm_source and utm_medium=email to the links in your newsletter and those visits land in the email channel. See UTM parameters, click ids and ref links.

Last updated · Markdown version