How to add Amabrik to Ghost
Add the Amabrik snippet to Ghost in minutes. Go to Settings, Advanced, Code injection, paste it into Site Header, and save. Works on every Ghost plan.
Amabrik adds widgets to your site (cookie consent, banners, popups, forms, chat, reviews, and more) from one small snippet. You paste that snippet once into your Ghost site’s header, and after that you turn widgets on or off from the Amabrik dashboard without touching Ghost again.
Ghost has a built-in Code injection area for exactly this kind of thing, so you don’t need to edit your theme files or install a plugin. Here’s how to do it.
Get your snippet
-
Sign in to the Amabrik dashboard at app.amabrik.com.
-
Open the Install page.
-
Copy your snippet. It looks like this, with your own site ID in place of
YOUR_SITE_ID:<script async src="https://cdn.amabrik.com/v1/loader.js" data-site="YOUR_SITE_ID"></script>Always copy the exact line from the Install page so the
data-sitevalue matches your account. Don’t type it by hand.
Add it via Settings, Advanced, Code injection
- Sign in to your Ghost admin at
yourdomain.com/ghost(oryoursite.ghost.io/ghoston Ghost(Pro)). - In the sidebar, click Settings (the gear icon).
- Scroll to the Advanced section and click Code injection.
- You’ll see two boxes: Site Header and Site Footer. Paste your Amabrik snippet into the Site Header box.
- Click Save in the top right.
That’s it. The Site Header box injects your code inside the <head> tag on every page of your site, which is exactly where the Amabrik loader belongs. The async attribute means it loads without slowing your pages down.
This works on every Ghost(Pro) plan, including Starter, and on self-hosted Ghost. Code injection is a core Ghost feature, so you don’t need a paid add-on or a specific theme for it.
Check it is live
- Open your site in a normal browser tab (not the Ghost editor preview).
- Right-click the page and choose View page source.
- Use your browser’s find (Cmd+F or Ctrl+F) and search for
amabrik. - If you see the
<script ... src="https://cdn.amabrik.com/v1/loader.js" ...>line in the source, the snippet is installed.
If you have a widget turned on for this site, you’ll also see it appear on the page itself within a second or two.
Turn on widgets in the dashboard
The snippet by itself does nothing visible until you enable a widget. Back in the Amabrik dashboard:
- Go to Widgets.
- Pick a widget (for example, Cookie consent or a Banner), configure it, and publish it.
- Reload your Ghost site. The widget shows up.
From now on you manage everything from Amabrik. You won’t need to edit Ghost again to add, change, or remove widgets.
Troubleshooting
You pasted it into a post or page instead of Site Header. Ghost also has per-post code injection, found in the post or page settings under Code injection. That only affects one post. For Amabrik to run across your whole site, the snippet must go in the global Settings, Advanced, Code injection, Site Header box, not a single post.
You don’t see the change yet. Ghost and many hosts cache pages. Hard-refresh the page (Cmd+Shift+R or Ctrl+Shift+R), or open it in a private window. If you use a CDN or a caching service in front of Ghost, clear that cache too.
Nothing appears even though the snippet is in the source. A widget has to be enabled and published in the Amabrik dashboard for anything to show. Also confirm the data-site value in your snippet matches the site ID on your Install page.
Custom or heavily modified theme. Code injection runs at the theme level, so a theme that strips or moves the {{ghost_head}} helper can block header injection. Standard Ghost themes include it. If you built a custom theme, make sure {{ghost_head}} is present in default.hbs, since Ghost relies on it to output Site Header code.
Domain mismatch. Amabrik only serves your config to your own domain. If you set a domain in the Amabrik dashboard, make sure it matches the domain you’re actually viewing (for example www. vs no www.).
FAQ
Does this work on the Ghost Starter plan?
Yes. Code injection is available on every Ghost(Pro) plan, including Starter, and on self-hosted Ghost.
Do I need to edit my theme or know how to code?
No. You paste one line into the Site Header box and save. You never open a theme file.
Will it slow down my site?
The loader is small and loads with async, so it doesn’t block your page from rendering.
Can I remove it later?
Yes. Delete the snippet from Settings, Advanced, Code injection, Site Header and save. To temporarily hide widgets without removing the snippet, just unpublish them in the Amabrik dashboard.
Where do I put it if I have a multi-site or staging Ghost setup?
Add the snippet to each site’s own Site Header, and use the matching site ID from that site’s Install page in the Amabrik dashboard.
Last updated June 22, 2026
Want us to install it for you?
Open the Install page in your dashboard and use the Request Installation tab. Our team sets it up for you.