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.

  1. Log in to your SquareSpace dashboard

  2. Go to Settings > Advanced > Code Injection

  3. 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. Replace YOUR_DOMAIN.COM with your website's root domain.

  4. Click Save

Alternative: Using Code Block

You can also add the script using a Code Block on individual pages:

  1. Edit the page where you want to add tracking
  2. Click + to add a new block
  3. Select Code from the block menu
  4. Paste the DataFast tracking script
  5. Make sure "Display Source" is unchecked
  6. 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.

Something missing? Suggest features ✍️