Skip to content

Track where Typeform leads came from

When a form submission does not say which campaign, search result, or social post produced it, budget decisions become guesswork. This guide explains how to attach source information to Typeform submissions so each lead can be reviewed in context.

Why source attribution matters

Without source data, a Typeform submission may show what a person answered but not whether they arrived through paid search, organic search, social media, or another initiative. That gap makes it difficult to judge which activity deserves more time or budget. The approach below stores source information before submission, then attaches it to the form record.

Set up the form in three steps

First, place the tracking snippet on the website using the current installation instructions. Second, add these hidden fields to the Typeform: Channel, Channel Drilldown 1, Channel Drilldown 2, Channel Drilldown 3, and Channel Drilldown 4. Third, submit a test form and confirm that the fields contain values rather than blanks. A useful pre-launch checklist is: snippet installed on every relevant page, all five fields present, test submission checked in Results, and downstream CRM or spreadsheet mapping verified.

How the data reaches the submission

Once installed, the tracking tool watches visits, classifies each visitor into a channel similar to analytics categories such as Paid Search, Paid Social, and Organic Search, and stores that classification in a cookie. When the visitor later submits a Typeform, the stored information is written into the hidden fields. The submission then carries the source context with the lead.

What the captured values can look like

For a paid-search visitor, the fields might show Paid Search, the search platform, the campaign name, and the keyword used. For an organic-search visitor, they might show Organic Search, the search platform, the referring domain, and the keyword when available. The exact drilldown values depend on the UTM parameters and referral information available for that visit.

Landing-page context

In addition to channel information, the setup can capture the first landing page and the landing-page group. For example, a full blog article URL can be grouped under the blog section. That distinction helps teams compare content areas and identify individual articles that generate submissions.

Use the data after submission

After capture, review individual submissions in Typeform Results or add the source fields to notification emails. For broader analysis, send the data to a CRM or to Google Sheets, where it can be charted or connected to a reporting tool. Three practical reports are leads by channel, leads by paid-search campaign, and leads by social network. Comparing those views can reveal whether spending matches the channels actually producing leads.

Example channel values
ScenarioChannelDrilldown 1Drilldown 2Drilldown 3
Paid search clickPaid SearchGoogleBrand CampaignTypeform
Organic search visitOrganic SearchGooglewww.google.comTypeform

Illustrative values depend on UTM parameters and referral data available at the visit.

Frequently asked questions

What are the three setup steps?

Add the tracking snippet to your site, create the five hidden fields in Typeform, and let the tool populate them from the visitor's stored source data when the form is submitted.

Which fields should the form contain?

Channel plus four drilldown levels, together with the initial landing page and its group, such as a blog section.

Where can the captured source data go next?

You can inspect submissions in Typeform Results, include the data in notification emails, send it to a CRM, or send it to Google Sheets for reporting.