Skip to content

Capture UTM Parameters in Gravity Forms: Hidden Fields, Channels and Landing Pages

Knowing which campaigns produce leads is different from knowing which produce customers. This guide explains how to attach channel, drilldown, landing-page and click-ID data to every Gravity Forms submission, including visits that arrive without UTM parameters.

The four-step workflow

A form submission normally records only what the visitor types. Attribution data adds context: the channel that brought the visitor, the campaign details behind that channel, and the first page the visitor viewed. Together, those details let a CRM or spreadsheet report connect leads and revenue to marketing activity.

The workflow has four parts:

  • Place a small attribution snippet on the website, through theme settings, a header/footer plugin, or Google Tag Manager.
  • Add hidden fields to the form so there is a destination for the captured values.
  • Let the snippet classify the visit and write values into those fields at submission time.
  • Review the completed entry, include the fields in notifications, or send them to a CRM, spreadsheet or other connected tool.

Hidden fields are not shown to visitors, but they remain part of the form and can be populated programmatically. In Gravity Forms they can be added by dragging in the Hidden Field type, or by marking an existing field as hidden in its properties.

Hidden-field checklist and worked example

Use these exact field labels so captured values can be mapped consistently across forms:

  • Channel
  • Channel Drilldown 1
  • Channel Drilldown 2
  • Channel Drilldown 3
  • Landing Page
  • Landing Page Group

Channel gives the broad source, such as Paid Search or Organic Search. The three drilldowns add progressively more specific detail, such as the network, campaign and advertiser. Landing Page records the first page viewed, while Landing Page Group records its section, such as a blog or features area.

Worked example: a visitor clicks a paid search advertisement, lands on a features page, then requests a demo. The captured values could be Channel = Paid Search, Channel Drilldown 1 = Google, Channel Drilldown 2 = Brand Campaign, Channel Drilldown 3 = Dropbox, Landing Page = www.dropbox.com/features/share and Landing Page Group = Features. That pattern shows both the campaign source and the content section that started the journey.

Why go beyond raw UTM parameters?

UTM parameters alone describe only tagged paid campaigns. A broader attribution approach also classifies visits from Organic Search, Organic Social, Direct, Referral and other sources, so every lead has a channel rather than leaving untagged traffic blank.

Persistence matters as well. If an advertisement leads to a campaign page and the visitor then moves to a separate quote form, a method that reads UTM parameters only on the landing page will lose them. Storing the values in a browser cookie allows the form page to receive the same attribution data later.

Click IDs extend the record beyond UTM values. GCLID, MSCLKID and FBCLID can travel into a CRM and, after a lead becomes a customer, be sent back to the relevant advertising platform as an offline conversion. That makes it possible to optimise for paying customers instead of relying only on thank-you-page visits.

Landing-page capture answers a separate question: which part of the website starts valuable journeys? Recording both the individual page and its group lets teams compare a single article with the whole blog, or one product section with another.

Reports and pre-launch checks

Once the fields are included in entries, notifications, CRM records or spreadsheets, four practical reports become possible:

  • Leads by Channel: compare monthly lead volume across paid, organic and other sources before deciding where to invest more.
  • Leads by Facebook Ads Network: compare Facebook, Instagram, Messenger and other networks to shift spend toward lower-cost, higher-performing placements.
  • Customers by Google Ads Campaign: separate campaigns that attract traffic from campaigns that produce paying customers.
  • Revenue by Keyword: when keyword is included in Google Ads tracking, compare revenue by keyword and use the result for bidding, SEO priorities and message wording.

Before publishing the setup, submit a test from a tagged campaign, an untagged organic visit and a multi-page journey. Confirm that channel, drilldowns, landing page, landing-page group and any click IDs appear in the entry and reach the CRM or spreadsheet correctly.

Frequently asked questions

How do I check that attribution data is being captured correctly?

Add the attribution snippet to the site, add the six hidden fields listed above to each Gravity Form, then submit a test form and check Entries. The values should appear alongside the name, email and other details entered by the visitor.

Why can UTM values disappear before a form is submitted?

Raw UTM capture only works when the form is completed on the landing page. Storing the attribution values in a browser cookie preserves them when a visitor moves to a different page to submit the form.

Can click IDs be used for offline conversions?

Yes. Click identifiers such as GCLID, MSCLKID and FBCLID can be passed with the submission, stored in a CRM, and later returned to an advertising platform as an offline conversion when a lead becomes a customer.