Skip to content

Track Lead Source in Gravity Forms

A form submission tells you who contacted you, but not how they found you. Capturing attribution at submission closes that gap: the channel, campaign detail, and landing page travel with the name, email, and other details already collected, so reporting can start from the entry itself rather than from guesswork.

Three-step setup

The workflow has three parts. First, install the attribution snippet on the site and add hidden fields to the form. Second, the snippet identifies where the visitor came from and writes that information into the hidden fields. Third, Gravity Forms stores those values alongside the visible submission data.

Use this checklist before testing:

  • Snippet installed on every page where a tracked form can be reached
  • Hidden fields added to each form that needs attribution
  • Field labels or IDs match the values the snippet writes
  • A test submission produces values in Entries
  • Notification, CRM, or spreadsheet mapping includes the attribution fields if needed

What the hidden fields capture

Add hidden fields named Channel, Channel Drilldown 1, Channel Drilldown 2, Channel Drilldown 3, and Channel Drilldown 4. Think of Channel as the summary and the drilldowns as the evidence behind it.

A paid-search example might resolve as Channel: Paid Search, Drilldown 1: Google, Drilldown 2: the campaign name, and Drilldown 3: the keyword used. An organic example might resolve as Channel: Organic Search, Drilldown 1: Google, Drilldown 2: the Google domain, and Drilldown 3: the keyword when available. That progression lets you report broadly first, then investigate the specific campaign or search that produced the lead.

Landing-page capture adds a second dimension. Record the exact first page the visitor landed on and the landing-page group, such as the blog section. Group totals show which site section generates leads; exact pages show which article or page within that section did the work.

Using the data after submission

Once stored, attribution data can be viewed in the Entries table, added to notification emails, sent to a CRM through native or third-party integrations, or sent to a spreadsheet for reporting. The right destination depends on where decisions are made: Entries for quick checks, email for immediate context, CRM for pipeline reporting, and a spreadsheet for ad hoc analysis.

Three reports are especially useful. Leads by channel gives a monthly high-level view across Paid Search, Paid Social, Organic Search, and similar routes. Leads by Google Ads campaign separates campaigns that convert from campaigns that only attract clicks. Leads by social network shows which company pages turn posts and updates into actual leads. Together, they move budget discussions from traffic volume to lead outcomes.

Frequently asked questions

What fields do I need in Gravity Forms to capture lead source?

Add hidden fields for Channel and Channel Drilldown 1 to 4, install the attribution snippet, and let it populate those fields before submission. The values are then stored with the entry and can be shown in Entries, notification emails, a CRM, or a spreadsheet.

Will hidden attribution fields affect visitors?

Yes. Because the fields are hidden, visitors do not see or complete them, so the capture step does not add visible friction to the form.

What is the difference between Channel and the drilldowns?

Channel records the broad route such as Paid Search or Organic Search. Drilldowns add progressively finer detail, such as the network, campaign, and keyword or domain.