Skip to content

Capture Google Analytics data in FormCraft

Google Analytics can show traffic and goals, but it does not by itself tell you which campaigns produced deals or revenue. This guide explains how to record channel and landing page information inside FormCraft at the moment a lead submits a form, then pass that context to the systems you use for follow-up and reporting.

Why form submissions need visit context

Analytics shows who visited and whether a goal was reached. It does not automatically attach that visit context to the lead record created later. Without that link, a CRM can tell you that a lead arrived, but not whether the source was Organic Search, Paid Social, Paid Search or a referral, nor which page first earned the visitor's attention.

The fix is to record attribution context at form submission. A small site script identifies where a visitor came from, classifies the visit using familiar channel categories, and stores that classification in a browser cookie. When the visitor later completes a form, the script writes the stored channel and landing page values into hidden fields on the form. FormCraft then saves those values alongside the visible answers, and its integrations can forward the whole record.

Four steps to capture the data in FormCraft

Work through the setup in order, because each step depends on the one before it.

  1. Add hidden fields to the form. Include Channel, Channel Drilldown 1, Channel Drilldown 2, Channel Drilldown 3, Landing Page and Landing Page Group. Drag in the Hidden field type, or convert an existing field such as a single-line text field by selecting its Hidden checkbox.
  1. Let the attribution tool fill them. When a visitor submits the form, the tool populates the fields with the channel and landing page data it recorded for that visit.
  1. Check what FormCraft captured. On submission, FormCraft stores the hidden-field values together with the visitor's name, email address, phone number and other answers, so attribution and contact details sit in one record.
  1. Send the record onward. Use FormCraft's native integrations, or a connector such as Zapier, to deliver the data to a CRM, email marketing tool, analytics tool or billing system. Examples named in the captured material include Salesforce, Pipedrive, HubSpot and Microsoft Dynamics.

Worked example: a Paid Search brand campaign

Suppose a visitor reaches the site through a brand campaign on Paid Search. The hidden fields would be filled as follows: Channel is Paid Search, Channel Drilldown 1 is Google, Channel Drilldown 2 is Brand Campaign, and Channel Drilldown 3 is Salesforce. The landing page field records the first page the visitor saw, for example a features page, and the landing page group records its category, for example Features.

That pattern is worth copying when you test your own form: submit a test lead from a known campaign link, then confirm each drilldown level and the landing page group before connecting the form to a CRM. If a level is blank, the problem is usually upstream in how the visit was classified, not in the form itself.

Reporting on channels and landing pages

Once the data reaches a CRM, you can report on leads by channel, opportunities and Closed/Won deals by channel, and conversion rate to opportunity. That makes it possible to compare campaign performance and SEO results in the same view as pipeline, rather than relying on traffic alone.

Use the landing page group for content decisions. Rolling individual pages up into groups such as Blog or Features shows the total leads a whole content area generates, while the individual landing page field shows which single post or page contributed most. Together they support both budget decisions and content strategy.

Hidden fields to add to a FormCraft form
FieldWhat it recordsUse it to answer
ChannelHow the visitor arrived, such as Organic Search, Paid Search or Paid SocialWhich channel generated this lead?
Channel Drilldown 1First level of channel detail, such as the networkWhich network drove the lead?
Channel Drilldown 2Second level of channel detail, such as the campaignWhich campaign drove the lead?
Channel Drilldown 3Third level of channel detail, such as the ad group or keywordWhich ad group or keyword drove the lead?
Landing PageThe first page the visitor landed onWhich page first captured interest?
Landing Page GroupThe category of that page, such as Blog or FeaturesHow does the whole content area perform?

Field names are the exact hidden-field labels to create in the form.

Frequently asked questions

Which hidden fields should a FormCraft form contain?

Add six hidden fields: Channel, Channel Drilldown 1, Channel Drilldown 2, Channel Drilldown 3, Landing Page and Landing Page Group. In FormCraft you can drag in a Hidden field type, or take another field such as a single-line text field and tick its Hidden checkbox.

How do the hidden fields get filled?

When a visitor submits the form, the attribution tool fills those hidden fields from the visit it recorded earlier. FormCraft then stores the values together with the details the visitor typed, such as name, email address and phone number.

How does the data reach a CRM or email tool?

Use FormCraft's native integrations, or a connector such as Zapier, to pass the captured values onward. The captured evidence names Salesforce, Pipedrive, HubSpot and Microsoft Dynamics as CRM examples, alongside email marketing and analytics tools.

What is the difference between channel data and landing page data?

Two elements do most of the work: Channel, meaning how the visitor arrived, and Landing Page, meaning which page first held their attention. Channel drilldowns add detail such as network, campaign and ad group, while the landing page group lets you roll individual pages up into a category such as Blog or Features.