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_******" src="https://cdn.flowsery.com/main.js"></script>Replace flid_****** with the Website ID from your Flowsery Analytics settings.
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.