Ghost
Ghost ships with code injection built in, so Clickport installs in under a minute: one paste in the Site Header field and every post and page is tracked. Works on Ghost(Pro) on every plan, including Starter, and on any self-hosted Ghost.
Install the snippet
- In Clickport, add your site and copy your tracking snippet:
<script defer data-domain="yoursite.com"
src="https://clickport.io/tracker.js"></script>
- In Ghost Admin, go to Settings, then Advanced, then Code injection.
- Paste the snippet into Site Header.
- Save. The change applies to every page immediately.
- Open your site in a fresh tab and check the realtime view in Clickport.
Good to know
- Site Header injection covers everything: posts, pages, tag archives, and your homepage, including content you publish later.
- Ghost also offers per-post code injection in the editor sidebar. You do not need it for Clickport; it is useful for one-off experiments like flagging a special page with a custom event.
- Ghost themes render normal page loads, so there is nothing SPA-specific to configure.
- Newsletter links are a classic source of untagged "Direct" traffic. Tag the links in your emails with UTM parameters so subscribers show up as their own campaign. See UTM Tracking.
- Exclude your own visits while writing. See Exclude Your Visits.
Related
- Installation - The platform-independent guide
- UTM Tracking - Tag your newsletter and social links
- Troubleshooting - If no data shows up