Simplify Tracking Referrals in Squarespace Forms

Learn to track referrals with Squarespace's hidden fields. Use custom URLs and discrete field names.

Simplify Tracking Referrals in Squarespace Forms
Last Edited Time
Jun 25, 2025 09:35 PM
Do not index
Do not index
Suggested Tag
Squarespace
form customization
referral tracking
Tags Synced
Tags Synced
AI summary
Use hidden fields in Squarespace forms to track referral sources by creating custom URLs with query parameters. Ensure values are under 100 characters and test your setup to capture data effectively for better campaign analytics.
Last edited by
Platform
Category
Topic

Simplify Tracking Referrals in Squarespace Forms

Learn to track referrals with Squarespace's hidden fields.
TL;DR: Key Points
  • Use hidden form fields in Squarespace to track referral sources
  • Insert and customise hidden fields directly in form blocks
  • Create URLs with query parameters to categorise different referral sources
  • Keep referral values under 100 characters
  • Hide tracking from users by using discrete field names

Set Up Your Squarespace Form

To start tracking referral sources using hidden form fields, add a hidden field to your Squarespace form:
  1. Select a page or post, choose where to insert your form, then select the Form block
  1. In the Form Editor under Content, select 'Edit Form Fields', then 'Add Field'
  1. Choose 'Hidden' from the options. This adds a hidden field to your form
Note: Form blocks include Name, Email Address, Subject, and Message fields by default.

Customise Your Hidden Fields

Setting up hidden fields properly is key for effective tracking:
  1. Label your hidden form field. Squarespace automatically adds an identifier starting with SQF_. If you label it "Source", it becomes SQF_SOURCE
  1. Add a default value that gets sent when someone visits directly (without using a specific query)
Pixelhaze Tip: Use a single, clear word for your label. This keeps data transfer smooth, especially when connecting to Google Drive or Mailchimp.

Create and Use Custom URLs

To track different campaigns, build custom URLs with specific query parameters:
  • Format: /?SQF_<field-title>=<value> where <field-title> is your identifier and <value> is your campaign marker (facebook, x, newsletter, etc.)
  • Add the query to the end of any page URL on your site
Examples:
  • Facebook campaign: http://yourwebsite.com/contact-us/?SQF_SOURCE=facebook
  • Twitter campaign: http://yourwebsite.com/contact-us/?SQF_SOURCE=x
  • Email newsletter: http://yourwebsite.com/contact-us/?SQF_SOURCE=newsletter

Test Your Setup

Always test before going live:
  • Log out of your site or use incognito mode
  • Visit your form using one of your custom URLs
  • Submit a test form to check the hidden field captures data correctly
To view referral data, check wherever your form submissions go (email, Google Drive, Mailchimp). The data appears next to your labelled source field.
Pixelhaze Tip: Track multiple things by adding more hidden fields. Separate them with an ampersand (&): /?SQF_SOURCE=facebook&SQF_MONTH=january

FAQs

Can I track various referral sources at once in Squarespace? Yes, use multiple hidden fields in your forms to track different sources.
Is there a character limit for hidden field values? Yes, keep values under 100 characters.
Can I change the default values of hidden form fields? Absolutely. Set whatever default values work for your tracking needs.

Jargon Buster

  • Hidden Form Field: An invisible form field that captures data without users seeing it
  • Query Parameter: Extra bits added to URLs to send specific data, useful for tracking
  • Referral Sources: Where your website traffic comes from, tracked using methods like hidden fields

Wrap Up

Hidden form fields in Squarespace make referral tracking straightforward and give you better campaign analytics. Follow these steps to capture visitor data quietly and effectively. Your marketing becomes much more measurable. Just keep your variable names and values clear so data processing stays smooth.

Join our Free Membership and access our DIY Community.

Need help with your website

Become a member