Set up Flowsery Analytics on a Ghost CMS site
This guide walks you through adding Flowsery Analytics tracking to your Ghost-powered site.
Inject the snippet with Code Injection
Ghost ships with a built-in Code Injection feature designed for exactly this purpose.
-
Sign in to your Ghost admin panel
-
Go to Settings > Code Injection
-
In the Site Header box, paste the Flowsery Analytics snippet:
<script defer data-fl-website-id="flid_******" data-domain="your_domain.com" src="https://analytics.flowsery.com/js/script.js" ></script>Replace
flid_******with the Website ID from your Flowsery Analytics settings. Replaceyour_domain.comwith the root domain of your site. -
Click Save
Alternative: Editing a custom theme
If you maintain a custom Ghost theme, you can embed the script directly in default.hbs:
- Navigate to Design > Theme Editor
- Open
default.hbs - Insert the snippet just before the closing
</head>tag - Save your changes
Confirm everything is working
After applying either method:
- Navigate to your live site
- Open your Flowsery Analytics dashboard and check for incoming pageviews
- Allow a couple of minutes for the first data to appear
For additional options such as localhost tracking, custom API endpoints, or cross-domain configuration, refer to the script configuration reference.
Code Injection changes apply to the published site only, not the in-editor preview.