Deploy Flowsery Analytics via Google Tag Manager
Google Tag Manager (GTM) lets you add and manage Flowsery Analytics without touching your site's source code.
Set up the tag in GTM
- Sign in to your Google Tag Manager account
- Select the appropriate container
- Go to Tags > New
- Give the tag a name (e.g., "Flowsery Analytics")
- Click Tag Configuration and pick Custom HTML
- Paste the following JavaScript (not a plain script tag):
<script>
(function() {
var script = document.createElement('script');
script.defer = true;
script.setAttribute('data-fl-website-id', 'flid_******');
script.setAttribute('data-domain', 'your_domain.com');
script.src = 'https://analytics.flowsery.com/js/script.js';
document.head.appendChild(script);
})();
</script>
Swap flid_****** and your_domain.com for the values shown in your Flowsery Analytics settings.
- Click Triggering, choose All Pages, then click Add
- Click Save
- Hit Submit in the top-right corner, then Publish
Troubleshooting
- If data is not appearing, use GTM's preview mode to verify the tag is firing
- Double-check that the Website ID and domain values are correct
- Make sure Content Security Policy (CSP) rules are not blocking the script
- Confirm the tag fires early in the page lifecycle by assigning an appropriate trigger event
For additional options such as localhost tracking, custom API endpoints, or cross-domain configuration, refer to the script configuration reference.