InstallPlatforms
Ghost
Add trckable to a Ghost site with code injection. It takes one paste.
Ghost has a site-wide code injection box in its admin. No theme edit is needed.
Steps
- In Ghost Admin, open Settings (the gear icon).
- Find Code injection under Advanced.
- Paste the script tag below into Site header.
- Click Save.
<script
defer
data-site="tkb_a1b2c3d4"
data-domain="example.com"
src="https://stats.example.com/js/tkb_a1b2c3d4.js">
</script>Check it works
Open your site in a private window, then open your trckable dashboard and look at Live. Your visit shows up within a minute.
If it does not show
- Ghost(Pro) and self-hosted Ghost both support code injection. If you do not see the setting, you may be on a role without access: ask the site owner.
- A CDN or cache in front of your site serves an old page. Purge it and reload.
- Pasted into Site footer instead of Site header. It still counts, but move it to the header for the earliest load.
Still stuck? Run npx trckable doctor against your site, or see the script tag page.