Ghost CMS

Add DataSaaS analytics to your Ghost blog. Ghost has built-in code injection that makes this straightforward.

1

Go to Code injection

In your Ghost admin panel, go to SettingsCode injection.

2

Paste in Site Header

Paste the DataSaaS script into the Site Header section.

3

Save

Click Save to apply your changes.

4

Add the DataSaaS tracking script

Paste the following snippet:

<script
  defer
  data-website-id="ds_YOUR_WEBSITE_ID"
  data-domain="yourdomain.com"
  src="https://datasaas.co/js/script.min.js"
></script>
5

Replace the placeholder values

Replace ds_YOUR_WEBSITE_ID with the Website ID you received when adding your site in DataSaaS, and replace yourdomain.com with your actual domain.

6

Verify

Visit your website, then open the DataSaaS dashboard. You should see your visit appear within a few seconds.