Set up Flowsery Analytics on a SquareSpace site
This guide walks you through adding Flowsery Analytics tracking to your SquareSpace website.
Inject the snippet with Code Injection
SquareSpace offers a Code Injection feature for adding custom HTML and JavaScript.
-
Sign in to your SquareSpace dashboard
-
Go to Settings > Advanced > Code Injection
-
In the Header field, 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: Code Block on individual pages
You can also embed the snippet on a per-page basis using a Code Block:
- Edit the page where you want tracking
- Click + to add a new block
- Pick Code from the block menu
- Paste the Flowsery Analytics tracking snippet
- Ensure "Display Source" is unchecked
- Save the page
Confirm everything is working
After setup:
- Navigate to your live SquareSpace 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.
Note: Code Injection requires a SquareSpace Business plan or higher. Code Blocks are available on all plans, but JavaScript execution needs a Business plan.