Skip to content

Capture Google Analytics Data in WPForms and Send It to Your CRM

Google Analytics tells you how people reached your site and, with goals configured, which channels produced leads. It stops short of telling you which channels produced deals, customers and revenue. The gap closes when each WPForms submission carries the visitor's channel and first landing page into your CRM, spreadsheet or email tool. This guide walks through the four setup steps, the fields involved, and the reports that become possible once the data lands downstream.

Why put channel data inside the form

Analytics platforms are good at recording arrivals. They are weaker at connecting an arrival to a closed deal, because the deal lives in the CRM, not the analytics tool. If the form submission itself carries the channel and landing page, that context travels with the lead into every system the form feeds. Reports can then group opportunities and revenue by the same channel labels you already recognize from Google Analytics, such as Organic Search, Paid Social and Paid Search.

How an attribution layer of this kind works

The workflow described here relies on a small script placed on the site, such as the one the source product provides. On each visit it inspects technical signals about the referral and uses them to assign the visitor to a channel. The assignment is stored in the visitor's browser as a cookie. When that visitor submits a WPForms form, the stored values are written into hidden fields, and WPForms captures them alongside the name, email and phone number the visitor typed. From there, WPForms' native integrations can forward the whole record to a CRM, a spreadsheet, an email marketing platform or an email notification. Whether a given tool performs these steps depends on the product you deploy; confirm its behavior before relying on it.

Four setup steps

  1. Add hidden fields to your lead capture forms. In the WPForms builder, locate the field type labelled Hidden Field and drag one in for each value you want to record.
  1. Let the attribution layer fill them. Once the script is active, it writes the channel and landing-page values into those hidden fields automatically as visitors browse.
  1. WPForms captures the values on submit. The hidden field contents are stored with the rest of the submission.
  1. Forward the record. Use WPForms' native integrations to send the submission, hidden fields included, to your CRM or another destination.

Hidden field checklist

Add these six hidden fields to every lead capture form you want to attribute:

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

The first four describe where the visit came from at increasing levels of detail. The last two describe the first page the visitor saw and the category that page belongs to. If a field is missing from the form, that dimension simply will not appear in your downstream reports, even if the attribution layer has the value available.

Worked example: a brand campaign on Google Ads

Suppose a visitor reaches your site through a brand campaign on Google Ads, with UTM parameters that identify the source, campaign and brand. The hidden fields would be filled roughly as follows:

  • Channel: Paid Search
  • Channel Drilldown 1: Google
  • Channel Drilldown 2: Brand Campaign
  • Channel Drilldown 3: the brand name
  • Landing Page: the first page the visitor saw, for example a features page
  • Landing Page Group: the category of that page, for example Features

The exact values depend on the UTM parameters you used. If the UTMs are missing or inconsistent, the drilldown fields will be less specific even though the channel may still resolve correctly.

The two dimensions that matter most

Channel answers how the visitor arrived: Organic Search, Paid Search, Paid Social, Referral and similar categories. Landing Page answers what content appealed to them: a features page, a blog post, an ebook download page. Within a channel, further detail is available. For Paid Search, for example, the ad group, keywords and campaign can be recorded. For landing pages, grouping pages by category lets you view an entire blog as one entity and then drill into individual posts.

Three reports worth building

Once submissions carry channel and landing-page data into your CRM or spreadsheet, several reports become practical.

Leads by channel. Group each month's new leads by the channel that produced them to see where demand is concentrated. A useful check is to compare that split against where your budget actually goes: if the channel producing the most leads is not the one receiving the largest spend, the allocation deserves a second look.

Opportunities by Google Ads campaign. If you run multiple Google Ads campaigns, grouping opportunities by campaign shows which ones produce leads that turn into sales opportunities, not just clicks.

Customers by Facebook ads network. Ads on Facebook can appear across Facebook, Instagram, Messenger and WhatsApp. Grouping customers by network shows which placement actually produces buyers and where budget belongs.

When the data does not appear: three distinct causes

A blank channel field downstream usually traces to one of three separate problems, and each has a different fix.

Missing hidden field. The form itself has no field for the value, so WPForms has nowhere to store it. Check the form builder first.

Missing or inconsistent UTM parameters. The channel may resolve, but the drilldown fields will be vague or empty. Review the URLs used in your campaigns.

Missing CRM mapping. The submission contains the value, but the integration is not mapped to a CRM field, so it never lands. Check the field mapping in the integration settings.

Separating these three cases saves time, because each one is fixed in a different place.

Frequently asked questions

Do I need Google Analytics itself to make this work?

No. The attribution layer assigns channel categories that match the labels used in Google Analytics, but the values are written into the form's hidden fields directly. Google Analytics is useful for comparison and for goal tracking, but it is not a required link in the chain.

Which CRM platforms can receive the data?

WPForms' native integrations include Salesforce, Pipedrive, Zoho and Keap, among others. Whether the hidden field values reach a given CRM depends on that integration's field mapping, so confirm the mapping before relying on the data downstream.

Can the channel data appear in email notifications?

Yes. WPForms can include hidden field values in the notification emails it sends, so the recipient sees the channel and landing page alongside the visitor's contact details.

What is the difference between Channel and Channel Drilldown?

Channel is the broad category, such as Paid Search. The three drilldown fields add increasing specificity within that category, such as the network, the campaign and the brand or ad group. Landing Page and Landing Page Group work the same way for the first page visited.