Add DataFast to your SquareSpace site
Follow these steps to integrate DataFast analytics into your SquareSpace site.
Add tracking script using Code Injection
SquareSpace provides Code Injection features to add custom HTML and JavaScript.
-
Log in to your SquareSpace dashboard
-
Go to Settings > Advanced > Code Injection
-
In the Header section, paste your DataFast tracking script:
<script defer data-website-id="YOUR_WEBSITE_ID" data-domain="YOUR_DOMAIN.COM" src="https://datafa.st/js/script.js" ></script>
Replace
YOUR_WEBSITE_ID
with your actual Website ID from DataFast. ReplaceYOUR_DOMAIN.COM
with your website's root domain. -
Click Save
Alternative: Using Code Block
You can also add the script using a Code Block on individual pages:
- Edit the page where you want to add tracking
- Click + to add a new block
- Select Code from the block menu
- Paste the DataFast tracking script
- Make sure "Display Source" is unchecked
- Save the page
Verify installation
After implementing:
- Visit your live SquareSpace site
- Check your DataFast dashboard for incoming data
- It might take a few minutes for the first pageviews to appear
Note: Code Injection requires a SquareSpace Business plan or higher. Code Blocks are available on all plans but JavaScript execution requires a Business plan.