Add DataFast to your Ghost CMS site
Follow these steps to integrate DataFast analytics into your Ghost CMS site.
Add tracking script using Code Injection
Ghost provides a built-in Code Injection feature that makes it easy to add scripts to your site.
-
Log in to your Ghost admin dashboard
-
Go to Settings > Code Injection
-
In the Site Header section, paste your DataFast tracking script:
<script defer data-website-id="YOUR_WEBSITE_ID" data-domain="YOUR_DOMAIN.COM" src="https://datafa.st/js/script.js" ></script>
Replace
YOUR_WEBSITE_ID
with your actual Website ID from DataFast. ReplaceYOUR_DOMAIN.COM
with your website's root domain. -
Click Save
Alternative: Using a custom theme
If you're using a custom theme, you can add the script directly to your theme's default.hbs
file:
- Go to Design > Theme Editor
- Open
default.hbs
- Add the script just before the closing
</head>
tag - Save your changes
Verify installation
After implementing either method:
- Visit your live website
- Check your DataFast dashboard for incoming data
- It might take a few minutes for the first pageviews to appear