Install on
Ghost.
Paste one snippet before </body>. Takes under 60 seconds.
Install via Ghost Admin — Code Injection
Works for both Ghost Pro (hosted) and self-hosted Ghost.
-
1
Go to your Ghost Admin panel at
yourdomain.com/ghost. - 2 Click Settings (gear icon) in the bottom-left corner.
- 3 Click Code Injection.
- 4 Paste your snippet into the Site Footer field — not the Site Header field.
- 5 Click Save.
Your Tracking Snippet
Replace YOUR_SITE_ID with the Site ID shown in your AEOfix dashboard snippet banner. If you have rotated your key, use the exact snippet from the dashboard — it already includes &key=xxx.
<script>(function(){var i=document.createElement('img');i.width=1;i.height=1;i.style.display='none';i.alt='';i.src='https://aeofix.com/api/bot-pixel?page='+encodeURIComponent(location.pathname)+'&site=YOUR_SITE_ID';document.body.appendChild(i);})();</script>
Self-Hosted Ghost
For self-hosted Ghost, the Admin URL is typically yourdomain.com/ghost. The Settings → Code Injection path is identical to Ghost Pro — no additional server configuration is required.
Theme-Level Injection (Advanced)
If you need finer control, you can edit your theme's default.hbs file directly:
- 1 Navigate to your Ghost theme files.
-
2
Open
default.hbs. -
3
Find
</body>near the bottom of the file. -
4
Paste the snippet immediately before
</body>. - 5 Upload the modified theme in Admin → Design → Change theme.
Newsletter & Email Content
The snippet only fires on web page views — it does not run inside Ghost email newsletters. AI bots crawl your published web content, so web-only tracking is the correct and complete approach.
Verify Installation
- 1 Open your live Ghost site in a browser.
-
2
Open DevTools (F12) → Network tab → filter by
bot-pixel. - 3 You should see a 200 GET request on every page you visit.