Skip to content

Capture Google Analytics channel data in Squarespace forms

Google Analytics shows where visits came from, but businesses that close deals by phone or email also need to know which channel produced each lead. This guide explains how to store channel, campaign drilldown and landing-page details alongside every Squarespace form submission, then use them in Contacts, email notifications, a CRM or a spreadsheet.

Why attach visit data to the lead record?

Analytics alone can leave a gap for lead-based businesses: it records visits, while follow-up happens offline by email or phone. Attaching source details to the form record closes that gap, so a lead can be traced back to the channel and campaign that brought the visitor in. Checklist before you start: confirm which form you will update, decide where submissions will be reviewed, and prepare the six hidden fields listed below.

Step 1: Add six hidden fields

Create six hidden fields on the form: Channel; Channel Drilldown 1; Channel Drilldown 2; Channel Drilldown 3; Landing Page; and Landing Page Group. In Squarespace, add a form field and choose the Hidden option for each one. Keep field names consistent across forms so later CRM or spreadsheet mapping stays simple. Detailed hidden-field steps are linked below.

Step 2: Let the script fill the fields at submission

With the attribution script in place, the fields are filled automatically when a visitor submits. Example: a visitor arriving from a branded Paid Search campaign could be recorded as Channel: Paid Search, Drilldown 1: Google, Drilldown 2: Brand Campaign, Drilldown 3: Sydney Fencing, with the first page visited and its group, such as Products, stored alongside. That example shows how the drilldowns move from a broad channel to a specific campaign term.

Step 3: Review and forward the captured data

On submission, Squarespace stores the attribution values together with the details the visitor typed, such as name, email and phone. You can review both sets of data in the Contacts section. You can also include the attribution values in new-lead notification emails, or pass them to a CRM such as Salesforce, Pipedrive, Zoho CRM or HubSpot, or to a spreadsheet.

Step 4: Run reports that guide spend

Once data lands in a CRM or spreadsheet, three reports are a practical starting point. Leads by Channel shows monthly lead volume by source and highlights mismatches between spend and results. Customers by Google Ads Campaign shows which campaigns produce customers, not just clicks. Revenue by Facebook Ads Network breaks revenue across Facebook, Instagram, Messenger and WhatsApp; pairing that with spend from the ads platform gives a network-level return on investment view.

Hidden fields to add to a Squarespace form
Hidden fieldWhat it recordsExample use
ChannelBroad source categoryPaid Search
Channel Drilldown 1First level of source detailGoogle
Channel Drilldown 2Second level of source detailBrand Campaign
Channel Drilldown 3Third level of source detailSydney Fencing
Landing PageFirst page the visitor arrived onProducts page URL
Landing Page GroupGrouping of that landing pageProducts

Field set taken from the captured workflow; example values are illustrative from the fencing-company scenario.

Frequently asked questions

How do I attach channel data to a Squarespace form submission?

Add hidden fields for channel, three channel drilldowns, landing page and landing page group, place the attribution script on the site so it fills those fields on submission, then check the stored submission in Squarespace Contacts or forward the fields to a CRM or spreadsheet.

Where can I see the attribution data after a submission?

Yes. The captured fields can be viewed with the lead in Squarespace Contacts, added to new-lead notification emails, or sent onward to a CRM or spreadsheet for reporting.

What reports become possible once each lead carries channel data?

Useful starting reports include leads by channel, customers by Google Ads campaign, and revenue by Facebook Ads network. Combining revenue by network with spend from the ads platform lets you compare return on investment by network.