Ghost
Install the Ours Privacy Web SDK on a Ghost publication using Code Injection, plus how to track newsletter signups and paid conversions.
Use this page to install the Ours Privacy Web SDK on a Ghost publication.
Ghost has a built-in Code Injection setting, so no theme editing is required.
Steps to Integrate Ours Privacy with Ghost
1. Copy your install snippet
Copy your install snippet from the Install Ours page.
2. Add the snippet to Code Injection
- In Ghost Admin, go to Settings > Code injection.
- Paste your snippet into the Site header field.
- Save.
Ghost's own guidance often suggests the site footer for scripts. Use the site header instead, so tracking initializes before the rest of your page scripts and the initial page view is not missed.
3. Verify
- Open your live publication.
- Open the browser console to check for script errors.
- In your Ours Privacy account, check Recent Events to confirm page views are arriving.
Tracking a Single Post
To add tracking to one post rather than the whole site, open the post, then use Post settings > Code injection. Use this for one-off experiments, since it will not apply to any other post.
Tracking Signups and Subscriptions
Ghost memberships are a common conversion to report on. Track them from your theme or a Code Injection script when the signup or upgrade completes:
ours('track', 'Newsletter Signup', { tier: 'free' });Ghost redirects members to a confirmation URL after signup, so an alternative is to fire the event on that page rather than binding to a form.
Next Steps
- Web SDK reference: full list of tracking methods and options.
- Cookie Consent installation: add the consent banner so it loads before other tracking scripts.
If you need further assistance, contact us at support@oursprivacy.com.
How is this guide?

