consentics
  1. How the Consentics install works /
  2. Install Consentics on Ghost

Install Consentics on Ghost

Ghost's Code Injection panel is built for site-wide scripts like this one, and it works the same way whether you're on Ghost(Pro) or self-hosting.

Before you start

You'll need administrator or owner access to your Ghost site. Code Injection is a core Ghost admin feature available on both self-hosted installs and Ghost(Pro) plans, no upgrade needed.

Steps

  1. Go to your Consentics install page (Account, Properties, your site, Install) and copy your snippet. See the install basics for why you should copy it from there rather than reusing an example.
  2. In Ghost admin, open Settings, Advanced, Code Injection.
  3. Paste your Consentics snippet into the Site Header field. Site Header outputs into every page's <head>, which is what the snippet needs. Don't use Site Footer: that field outputs just before the closing </body> tag instead.
  4. Click Save.
  5. Ghost applies Code Injection changes immediately across your site, no separate publish step.
  6. Go back to your Consentics install page and check the waiting-for-first-event status. It turns green once Consentics receives your first page view.

Caveat

Ghost doesn't ship its own cookie or consent banner, so there's nothing native to turn off. If your theme or a previous integration already has a different consent tool's script in Site Header, remove it before adding the Consentics snippet: two consent banners running at once produce conflicting consent records for the same visitor.

FAQ

Will this apply to my newsletter or only the website? Code Injection only affects your published website. Ghost's email newsletters are sent separately and don't load page scripts, so this install doesn't touch your emails.

Does Code Injection survive a theme change? Yes. Code Injection lives in Settings, not in your theme files, so switching themes doesn't remove it.

I run a self-hosted Ghost instance behind a CDN or reverse proxy. Anything different? No extra steps for the install itself. If the banner doesn't appear after saving, check whether your CDN is caching pages and purge the cache, the same way you would for any other content change.