Website Builders & No-Code CMS
Installing Scoby Analytics on Ghost
Like all Scoby integrations, this lightweight, client-side integration is carefully designed to prioritize visitor privacy. It fully complies with EU ePrivacy and GDPR regulations, while enabling you to exercise your legitimate interest in understanding how your website is being used.
Prerequisites
Before you begin, make sure you have:
- A Scoby Analytics Workspace
- Your Workspace ID
- Admin access to your Ghost site
Installation Guide
Follow the steps below to anonymously count page views and (optionally) conversions such as purchases, sign ups or form submissions.
Logging Page Views
- Log in to your Ghost Admin panel (
https://yoursite.com/ghost
). - In the left sidebar, click Settings → Code Injection.

In the Site Header field, paste the following script.
Replace <WORKSPACE_ID>
with your actual Scoby Workspace ID.
<script>
(function () {
const workspaceId = "<WORKSPACE_ID>";
window.scoby = window.scoby || function () {
(window.scoby.q = window.scoby.q || []).push(arguments);
};
const script = document.createElement('script');
script.src = `https://${workspaceId}.s3y.io`;
document.head.append(script);
})();
</script>

- Click Save in the top-right corner.
- Your changes are applied immediately.
From this point on, Scoby Analytics will automatically log anonymous pageviews for all public pages of your Ghost site.
Logging Conversions
Ghost is primarily a publishing platform, but you can still log conversions for sign-ups, newsletter subscriptions, or paid memberships by adding snippets to:
- Thank You pages (after newsletter sign-up or paid membership)
- Custom pages with HTML embeds
- Custom themes (via theme files)
Thank You Page Method
If you have a dedicated "Thank You" or "Subscription Confirmation" page, open it in Ghost Admin and add this snippet in the Page Header via the Code Injection tab (top-right of the page editor):
<script>
window.scoby('logConversion', {
goal: 'Sign-Up'
});
</script>
Publish the page. When users are redirected here after signing up, the conversion will be logged.
Custom Theme Integration
If you’re using a custom Ghost theme, you can place a logConversion
snippet directly in the relevant .hbs
template (e.g. members/signup-success.hbs
):
<script>
window.scoby('logConversion', {
goal: 'Membership Signup'
});
</script>
This method is useful for logging Ghost Membership conversions without relying on a separate page.
Done 🎉
Scoby Analytics will now begin collecting anonymous visit and (optionally) conversion data from your Ghost site. Shortly after installation, you can view your live statistics in the Scoby Analytics Dashboard.