Capture Google Analytics data in ClickFunnels forms
Google Analytics shows website visits, but on its own it does not reliably connect those visits to the leads and customers who later submit a form. The setup below closes that gap: a small piece of attribution code on the site identifies where a visitor came from, stores that information in the browser, and writes it into hidden form fields at submission. ClickFunnels then captures it with the contact details, ready to view, forward or report on.
How the attribution flow works
A short attribution script is added to the website. When someone arrives, it examines technical signals about the visit in a similar way to Google Analytics and works out the likely origin. Visitors are grouped into standard channels such as Paid Search, Organic Search and Paid Social, and that classification is kept in the browser until a form is submitted.
Four steps to set up
Work through these four steps in order. Skipping the hidden-field step means there is nowhere for the attribution values to land; skipping the reporting step means the captured data stays unused.
1. Add hidden fields to your ClickFunnels forms
Choose the form you want to measure, add an Input field for each required name, and save it as a hidden field. Use exactly these names so the attribution code can recognise them:
Hidden field names to create
Channel Channel Drilldown 1 Channel Drilldown 2 Channel Drilldown 3 Landing Page Landing Page Group
2. Let the code complete the hidden fields
When a visitor submits a form, the code automatically fills the hidden fields with the channel classification and landing-page details it stored earlier. No manual entry is needed at submission time.
Worked example: a LinkedIn campaign lead
Consider a marketing director promoting strategic business planning services for tech companies through a LinkedIn campaign. Depending on the UTM parameters behind the ads, the fields might be completed like this:
Example field values
Channel = Paid social Channel Drilldown 1 = LinkedIn Channel Drilldown 2 = Strategic services campaign Channel Drilldown 3 = Tech business planning ad
3. Capture the data in ClickFunnels
On submission, ClickFunnels stores the attribution values together with the details the visitor typed, such as name and email address. From there you can:
What to do with captured data
View it on the contact record: open Contacts, select the person, and look under Custom Attributes. Add it to new-lead notification emails so each lead's origin is visible in real time. Send it to a CRM such as Salesforce, Pipedrive or HubSpot. Sync it to a spreadsheet in Google Sheets or Microsoft Excel.
4. Run reports on lead origin
Once channel and drilldown values sit on each contact, reporting becomes a matter of grouping those fields. Useful starting views include leads from Google Ads, customers from Facebook Ads, and new revenue attributed to SEO.
What data gets captured
Two kinds of information are captured for every lead. Marketing channel data records which channel drove the visit — for example Paid Search, Organic Search or Paid Social — plus drilldown detail such as campaign, ad group or keyword. Landing page data records the first page the visitor landed on and the category it belongs to, such as a blog path, so you can see which content attracts leads and customers.
Four reports to build first
Start with these four reports and refine them as your channel mix changes:
Report checklist
Leads by Channel: monthly lead counts per channel. If Organic Search dominates, that is a signal to consider more SEO investment. Opportunities by Google Ads campaign: monthly sales opportunities grouped by campaign, to spot which campaigns produce leads that convert. Customers by Facebook Ads network: customer counts split across Facebook, Instagram, Messenger, WhatsApp and other placements, so budget can follow the strongest network. Revenue from Organic Search by search engine: monthly revenue broken down by search engine, to see which engines contribute most to the bottom line.
Pre-launch checklist
Before you rely on the reports, run a quick self-check: submit a test form from a tagged campaign link, confirm every hidden field is populated on the contact record, confirm the values appear in the notification email and CRM record, and only then build the channel reports. If a field is blank, the most likely causes are a missing hidden field, a mismatched field name, or the attribution code not being present on the page where the visitor landed.
Wrap up
Combining attribution code with ClickFunnels forms gives you a direct line from a marketing channel or campaign to the leads and customers it produced. Capture the data at submission, send it to the tools your team already uses, and report on it by channel, campaign, network and search engine.
Frequently asked questions
Which hidden fields should I add to a ClickFunnels form?
Add hidden fields named Channel, Channel Drilldown 1, Channel Drilldown 2, Channel Drilldown 3, Landing Page and Landing Page Group to each lead form. The attribution code then fills those fields when a visitor submits the form, so ClickFunnels stores the channel and landing-page details alongside the visitor's own entries.
Where does the captured data appear after submission?
Open Contacts in ClickFunnels, select the contact, and check Custom Attributes on the contact record. The same captured values can also be included in lead notification emails, sent to a CRM, or synced to a spreadsheet.
What reports become possible once the data is captured?
Use the captured channel, drilldown and landing-page values to report leads by channel, opportunities by Google Ads campaign, customers by Facebook Ads network, and revenue from Organic Search by search engine. Those views show which channels, campaigns, networks and search engines are producing leads, opportunities, customers and revenue.