Ghost Installation
Install Jetrack on your Ghost blog or publication
Add Jetrack to your Ghost site to track readership and understand your audience.
Installation Steps
- Log in to your Ghost Admin panel
- Click Settings in the left sidebar
- Scroll down and click Code Injection
- In the Site Header section, paste your BrandJet tracking script:
<script
async
defer
data-website-id="your-unique-id"
src="https://analytics.brandjet.ai/script.js">
</script>- Click Save
Your tracking script will now load on all pages of your Ghost publication.
What Gets Tracked
BrandJet automatically tracks all Ghost content:
- Blog posts
- Pages
- Tags pages
- Author pages
- Homepage
- Custom routes
Site-Wide vs. Post-Specific
Site-Wide Tracking (Recommended)
Code Injection in Settings applies to your entire Ghost site.
Post/Page-Specific Tracking
To track individual posts or pages:
- Open the post or page in the editor
- Click the Settings gear icon
- Scroll to Code Injection
- Add your script to the Post/Page Header
- Publish or update
This is useful if you want different tracking for specific content.
Ghost Themes
The tracking script works with all Ghost themes, including:
- Official Ghost themes (Casper, Edition, London, etc.)
- Custom themes
- Third-party themes from the Ghost marketplace
No theme modifications needed!
Members & Subscriptions
For Ghost sites with memberships:
- BrandJet tracks both public and members-only content
- Member activity is tracked just like regular visitors
- No special configuration needed
Custom Integrations
Ghost's Code Injection works site-wide and integrates seamlessly with:
- Custom routes
- Collection pages
- Dynamic URLs
- API-generated pages
Testing
- Save your Code Injection settings
- Visit your Ghost site in a browser
- Open Developer Tools (F12)
- Check the Network tab for
script.js - Verify data appears in your BrandJet dashboard
Ghost(Pro) vs. Self-Hosted
These instructions work for both:
- Ghost(Pro) - Managed Ghost hosting
- Self-Hosted Ghost - Your own server
Code Injection is available in both setups.
Troubleshooting
Script Not Loading
- Make sure you clicked Save in Code Injection
- Clear your browser cache
- Check that code is in Site Header, not Site Footer
- View page source to confirm script is present
Not Tracking Posts
- Site Header applies to all posts automatically
- You don't need to add code to individual posts
- If using post-specific injection, make sure the post is published
Analytics Not Updating
- Wait 30-60 seconds after visiting pages
- Disable ad blockers when testing
- Verify your website ID is correct
- Check browser console for errors
Multiple Publications
If you run multiple Ghost sites:
- Create a separate website in BrandJet for each publication
- Use the unique tracking script for each site
- Track performance separately
Best Practices
- Use Site Header for tracking your entire publication
- Only use post-specific injection if needed for special cases
- Keep tracking scripts in the header, not footer
- Test after installation to verify tracking
Advanced: Theme Integration
For theme developers, you can also add the script directly to your theme:
Edit default.hbs in your theme and add before </head>:
<script
async
defer
data-website-id="your-unique-id"
src="https://analytics.brandjet.ai/script.js">
</script>Note: Using Code Injection is recommended over theme editing for easier management.