Capture Google Analytics channel data in Typeform forms
If a Typeform form is collecting leads from your website, the form alone usually does not tell you which channel, campaign, or landing page produced that lead. This guide explains how to attach Google Analytics-style channel and landing-page data to each submission, so you can review it in Typeform or pass it onward for reporting.
Why channel data needs to travel with the form submission
Google Analytics can show which channels bring visitors to a site, such as Paid Search, Paid Social, or Organic Search. That view does not, by itself, connect a visitor to a later form submission. To judge a channel or campaign, you need lead, opportunity, customer, or revenue counts tied back to the same source.
A small website snippet can solve that gap. When a visitor arrives, it identifies the source and groups it using channel categories comparable to those in Google Analytics. If that visitor later completes a Typeform form on the site, the snippet can place the source details into hidden form fields. Hidden fields are present in the form structure but are not shown to the person completing it, so the visible form stays unchanged.
Once submitted, those values travel with the answers the visitor provided, such as name and email. You can then inspect them in Typeform, include them in new-lead email notifications, or send them to a CRM or spreadsheet for fuller reporting.
Setup checklist: six hidden fields
Use this checklist before testing a form:
- Add six hidden fields: Channel, Channel Drilldown 1, Channel Drilldown 2, Channel Drilldown 3, Landing Page, and Landing Page Group.
- Confirm the fields are hidden from visitors and do not alter the form's appearance.
- Place the attribution snippet on the website pages where visitors arrive before they reach the form.
- Submit a test form from a known source and check that all six fields are populated.
- Check the submitted values in the Typeform Responses view.
- Decide whether the same fields should also appear in new-lead notifications or be sent to a CRM or spreadsheet.
The three drilldown fields add detail beneath the main channel. For example, a Paid Search visit might record Google as the first drilldown, a brand campaign as the second, and a specific ad as the third. An Organic Search visit might instead record Google, the Google domain used, and the search term when available. The landing-page fields record the first page the visitor reached and the group that page belongs to, such as a features or blog section.
Worked example: paid and organic visits
A worked example makes the distinction between channel and landing page clearer. Suppose a visitor clicks a Google ad for a form-building product, lands on a features page, and completes a form. The channel fields could show Paid Search, Google, the campaign name, and the ad. The landing-page fields could show the full features URL and its features group.
If a different visitor arrives through an organic Google search and lands on a blog article, the channel fields could show Organic Search, Google, the Google domain, and the keyword when available. The landing-page fields would show that article URL and its blog group. In both cases, the form submission now carries both how the visitor arrived and which content first attracted them.
Three reports to build after capture
With source data attached to each submission, three practical reports become possible:
- Leads by Channel: Count leads each month by channel to see which sources generate the most enquiries and whether spending matches that pattern.
- Opportunities by Google Ads campaign: Count new sales opportunities by campaign to identify which campaigns produce real pipeline, not only clicks or form fills.
- Customers by Facebook Ads network: Count new customers by the social network that referred them, making it easier to compare Facebook, Instagram, Messenger, and WhatsApp when ads run across them.
Start with the Responses view in Typeform for a quick check. For pipeline and revenue reporting, send the fields to a CRM or spreadsheet and group leads, opportunities, customers, and revenue by channel, drilldown, campaign, or landing-page group.