Ghost · free forever · no signup

Add a free click heatmap to Ghost

This guide shows how to add a Ghost heatmap in about a minute, with no integration: you paste one snippet into Settings → Code injection → Site Header, because it has to load on every page before your clicks happen, and it renders nothing visible. 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.

What this Ghost heatmap shows

A click heatmap records where visitors click on each page and draws those clicks as a colour overlay, so the hot spots stand out at a glance. It answers practical questions quickly: do people click the main button, do they try to click things that aren't links, and which parts of a long page get clicked at all? It records clicks only. It doesn't record sessions or keystrokes, and it doesn't show anything to your visitors.

How to add a click heatmap to Ghost

  1. 1In Ghost admin go to Settings, then scroll to Code injection (under Advanced on newer versions).
  2. 2Paste the snippet into the Site Header box — it is injected into the <head> of every page.
  3. 3Click Save. It is live immediately; Ghost has no build step and no cache to purge.
  4. 4For script tags, prefer the Site Footer box just below: same coverage, nothing blocking paint.
Self-hosted, or editing a theme directly? Self-hosted and editing the theme instead? Add the snippet to `default.hbs` above {{ghost_head}} and restart Ghost. Code injection survives theme switches, so it's the safer of the two.

Where it works best on a Ghost site

On Ghost, the right spot is Settings → Code injection → Site Header. Because it has to see every click, the heatmap loads once in the head of every page and renders nothing visible. Give it a week or two of normal traffic before drawing conclusions, and look at your most important pages first: the home page, your best-selling product or your main sign-up page.

Ghost plan and editor requirements

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.

Three things that trip people up on Ghost

Site Header vs Site Footer actually matters here

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).

The editor shows markup, not the widget

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.

Theme edits get wiped, Code injection doesn't

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.

Honest limits

A heatmap shows what people did, not why. It can't replace talking to customers or a proper A/B test, and on pages with only a handful of visits the patterns are mostly noise.

What you get, and what it costs

  • Free forever — there is no paid tier, no trial and no card
  • No signup for the badge-style widgets; the live ones create a site ID inline from your URL
  • Async script — it never blocks your page from rendering
  • Works on Ghost(Pro) and self-hosted Ghost, in Code injection and in the editor's HTML card, on any theme including Casper and Source
  • Bots filtered server-side on every visitor-counting widget

Ghost questions

Do I need an integration to add a click heatmap to Ghost?

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.

Where exactly does the snippet go on Ghost?

Settings → Code injection → Site Header, because it has to load on every page before your clicks happen, and it renders nothing visible.

Will it slow my Ghost site down?

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.

Does it work with page builders like Ghost admin?

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.

Does the heatmap record visitors' screens?

No. It records click positions on the page, not session videos, form input or keystrokes, and it isn't shown to your visitors.