Ghost CMS
Add attribu.tech to your Ghost CMS site.
Method 1: Code injection (recommended)
- In your Ghost admin panel, go to Settings.
- Scroll down to Code injection.
- In the Site Header section, paste the tracking script:
<script
defer
data-website-id="YOUR_SITE_ID"
data-domain="yourdomain.com"
src="https://attribu.tech/js/script.js"
></script>Replace
YOUR_SITE_ID with your actual Website ID from your attribu.tech dashboard. Replace yourdomain.com with your site's root domain.- Click Save.
The script will load on every page of your Ghost site, including posts, pages, and tag archives.
Method 2: Custom theme
If you use a custom Ghost theme, you can add the script directly to your theme's default.hbs file:
{{!-- default.hbs --}}
<head>
...
<script
defer
data-website-id="YOUR_SITE_ID"
data-domain="yourdomain.com"
src="https://attribu.tech/js/script.js"
></script>
</head>If you add the script to your theme, it will be removed when you update or switch themes. The code injection method (Method 1) persists across theme changes.
Verify installation
- Visit your Ghost site in an incognito/private window.
- Open your browser's Developer Tools and check the Network tab for a request to
/js/script.js. - Check your attribu.tech dashboard - a pageview should appear within a few minutes.
What's next
- Custom events - Track signups, newsletter subscriptions, and other user actions.
- Stripe integration - Attribute membership and subscription revenue to traffic sources.