This guide shows how to add a Ghost hit counter in about a minute, with no integration: you paste one snippet into Settings → Code injection → Site Footer, because an all-time total is a footer artefact — nobody scrolls up to check it. No integration to configure. Ghost renders raw HTML and script tags from Code injection and from an HTML card, so there is nothing to install and no third party in the loop.
The hit counter shows a running total of visits, the classic counter from the early web rebuilt with modern styles. It counts real page loads and filters known bots on the server, so the number isn't padded by crawlers. It suits personal sites, blogs and hobby projects where a visible total is part of the charm.
On Ghost, the right spot is Settings → Code injection → Site Footer. An all-time total is something people glance at, not something they look for, so the footer is the right home for it. Pick a theme that matches your site; louder themes suit personal pages, while plainer ones fit business sites.
Code injection is available on every Ghost(Pro) plan and on self-hosted Ghost, both sitewide (Settings → Code injection) and per post. HTML cards are available in the editor on all plans too. The main limit is on Ghost(Pro)'s entry plan, which doesn't allow custom themes, so use code injection or HTML cards rather than editing theme files.
Ghost's whole appeal is speed. Putting a script in Site Header makes the browser deal with it before painting your post; Site Footer runs it after. Our snippet is async either way, so use the Footer box unless the widget must exist before first paint (the heatmap and the speed badge are the only two that benefit).
An HTML card displays the raw code while you're writing and only renders on the published page. That's by design, not a failed paste. Publish (or use the preview link) and check the live URL — and remember post-level code injection doesn't run in preview at all on some versions.
If you paste the snippet into a `.hbs` file, the next theme update or theme switch silently removes it. Code injection is stored in your Ghost settings, not in the theme, so it survives both. On Ghost(Pro) you can't edit theme files directly anyway — Code injection and HTML cards are the whole surface.
A visit total says nothing about who visited or whether they stayed. For decisions about your site, use your analytics; the hit counter is for showing a number, not analysing one.
No integration to configure. Ghost renders raw HTML and script tags from Code injection and from an HTML card, so there is nothing to install and no third party in the loop. Installing an integration for this would mean another dependency and update cycle just to show one widget.
Settings → Code injection → Site Footer, because an all-time total is a footer artefact — nobody scrolls up to check it.
It adds one small script, loaded asynchronously, so it doesn't block your page from rendering. Any third-party script has some cost, so check your page speed before and after adding it. Ghost is already the fastest mainstream publishing platform and the point is to keep it that way: the snippet is one async tag, so it never blocks your post from rendering. Site Footer is the right injection slot for script tags — Site Header is for things that must run before paint.
Ghost admin: Settings → Code injection → Site Footer. Ghost editor: insert an HTML card. Post settings: per-post Code injection fields. Self-hosted themes: edit default.hbs above {{ghost_head}}. Any builder with a raw-HTML or code block will render it.
Known bots and crawlers are filtered out on the server before a visit is counted, so the total reflects real browsers as closely as we can make it.