SquareSpace

Add DataSaaS analytics to your Squarespace website using the built-in Code Injection feature.

Warning

Adding custom code requires a SquareSpace Business plan or higher. Make sure your account is on a paid plan before proceeding.

1

Open Code Injection

Go to SettingsAdvancedCode Injection.

2

Paste in the Header section

Paste the DataSaaS script into the Header section.

3

Save

Click Save to apply your changes.

4

Add the DataSaaS tracking script

Paste the following snippet:

<script
  defer
  data-website-id="ds_YOUR_WEBSITE_ID"
  data-domain="yourdomain.com"
  src="https://datasaas.co/js/script.min.js"
></script>
5

Replace the placeholder values

Replace ds_YOUR_WEBSITE_ID with the Website ID you received when adding your site in DataSaaS, and replace yourdomain.com with your actual domain.

6

Verify

Visit your website, then open the DataSaaS dashboard. You should see your visit appear within a few seconds.