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

  1. Sign in to your Google Tag Manager account
  2. Select the appropriate container
  3. Go to Tags > New
  4. Give the tag a name (e.g., "Flowsery Analytics")
  5. Click Tag Configuration and pick Custom HTML
  6. 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.

  1. Click Triggering, choose All Pages, then click Add
  2. Click Save
  3. 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.