Skip to content

Capture UTM and Attribution Data in FormCraft

A FormCraft submission can carry more than the details a visitor types. With UTM parameters on campaigns, hidden fields on the form, and an attribution snippet that remembers the visit, each lead can also record the channel, campaign detail, and landing page that preceded the submission.

Tag campaigns before visitors arrive

Start by tagging paid activity so the arriving visit carries usable campaign information. Apply parameters consistently across search and social advertising, including LinkedIn, Instagram, Twitter, Facebook, Bing, and Google. Add them to sponsored newsletters and display placements in industry publications as well. Consistent tagging at this stage makes later channel assignment and reporting much cleaner.

Create six hidden fields in FormCraft

Hidden fields sit on the form without being visible to visitors. In FormCraft, open the form, choose Add Field, and select Hidden from the Other section. Create fields for Channel, Channel Drilldown 1, Channel Drilldown 2, Channel Drilldown 3, Landing Page, and Landing Page Group. These six fields give reporting a compact structure: broad channel, three levels of detail, and the entry page plus its group.

Example: how completed fields can look

A worked example shows how the fields should read. A visitor searches for a software brand, clicks a paid search advertisement, browses the site, and later requests a demo. The completed fields could show Paid Search as the channel, Google as the first drilldown, Brand Campaign as the second, and the brand name as the third. The landing page might be the brand landing page, grouped under Landing Pages. The exact values depend on the parameters and page structure used.

How attribution reaches the submitted record

The attribution snippet examines arrival signals, groups the visit into a channel such as Paid Search, Paid Social, or Organic Search, and stores that information in a browser cookie. When a form is submitted, it writes the stored attribution details into the hidden fields. FormCraft then captures those values together with the name, email, company, and other details supplied by the lead. From there, the combined record can move to a CRM, appear in an email notification, or be saved in a spreadsheet.

Why cookie storage matters across pages

Cookie-based storage solves a common journey problem. A visitor may click an advertisement, land on the homepage, and only later move to a quote-request page. If attribution depended on UTM parameters remaining in the current page address, the campaign information could disappear during that journey. Storing it in the browser allows the later form to receive the original attribution details.

Turn captured fields into useful reports

Use the captured fields to answer practical marketing questions: how many leads came from a particular social platform, how many customers were acquired through paid search, how much revenue a channel produced, and how return compares across channels. Landing-page fields add a content view, such as comparing blog-originated leads with leads from other site sections. Normalising inconsistent UTM spellings also prevents one source from fragmenting into multiple report rows.

Pre-launch checklist

Before launch, test the full journey with a tagged campaign link. Confirm that the hidden fields remain invisible, that values populate after browsing to a different form page, and that the submitted record contains both visitor-supplied details and attribution fields. Also test an untagged organic visit to confirm that non-paid sources are classified rather than left blank.

FormCraft hidden-field map
Hidden fieldPurposeExample value
ChannelBroad source categoryPaid Search
Channel Drilldown 1First level of source detailGoogle
Channel Drilldown 2Second level of source detailBrand Campaign
Channel Drilldown 3Third level of source detailOlmo Software
Landing PageFirst page visitedwww.olmosoftware.com/landing-pages/brand
Landing Page GroupCategory of first pageLanding Pages

Example values are illustrative and depend on campaign tagging and site structure.

Frequently asked questions

What is the basic setup sequence for FormCraft attribution?

Add UTM parameters to paid campaigns, create the six hidden fields in FormCraft, install the attribution snippet so it can populate those fields, then submit a test form and check that channel, drilldown, and landing-page values arrive with the lead details.

Can leads without UTM parameters still be classified?

Yes. The attribution approach described here also classifies visits without UTM parameters, including Organic Search, Organic Social, Direct, and Referral, so reporting is not limited to paid campaigns.

What happens if a visitor lands on one page and submits a form on another?

Attribution data is stored in a browser cookie when the visitor first arrives. That stored data can then populate hidden fields on a later page, rather than depending on UTM parameters still being present in the form page URL.

Why normalise UTM values instead of reporting them raw?

Raw values such as google.com, google, and adwords can split one advertising source into several report rows. Normalising spelling and capitalisation before assigning a channel helps keep those variants together.

How can landing-page data support content reporting?

Capture the first landing page and its page group alongside channel data. Those fields make it possible to compare lead volume from a blog or another content section with other parts of the site.