Jetrack

Jetrack

Installation Guides

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

  1. Log in to your Ghost Admin panel
  2. Click Settings in the left sidebar
  3. Scroll down and click Code Injection
  4. 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>
  1. 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

Code Injection in Settings applies to your entire Ghost site.

Post/Page-Specific Tracking

To track individual posts or pages:

  1. Open the post or page in the editor
  2. Click the Settings gear icon
  3. Scroll to Code Injection
  4. Add your script to the Post/Page Header
  5. 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

  1. Save your Code Injection settings
  2. Visit your Ghost site in a browser
  3. Open Developer Tools (F12)
  4. Check the Network tab for script.js
  5. 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:

  1. Create a separate website in BrandJet for each publication
  2. Use the unique tracking script for each site
  3. 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.

Next Steps

On this page