Skip to content

Capture Facebook Ads Data in Wufoo Forms

You can see which Facebook campaign, ad set and ad produced a Wufoo lead by tagging ad URLs, remembering those tags in the browser, and writing them into hidden form fields at submission. The result travels with the name and email already collected, ready for a CRM, spreadsheet, email alert or billing platform.

Decision checklist

Use this checklist before testing a live form:

  • Every active Facebook ad URL carries UTM parameters.
  • Medium, source, campaign, term and content follow one naming convention.
  • The attribution snippet is present on the site.
  • Each Wufoo lead form contains the seven hidden fields listed below.
  • A test click from a tagged ad produces a submission showing the expected campaign, ad set and ad values.

That final test matters: if the hidden fields are empty, check the URL tagging, snippet placement and field names in order.

Step 1: Tag every Facebook ad URL

UTM parameters are short text values appended to a destination URL. They label the visit so it can be recognised later. A consistent structure keeps reporting clean:

  • Medium: paid social
  • Source: Facebook
  • Campaign: the campaign name
  • Term: the ad set name
  • Content: the specific ad

For example, a destination page can be followed by utm_medium=paidsocial, utm_source=facebook and utm_campaign=brand-campaign. Free URL builders can help assemble the full link, but consistency across all ads matters more than the builder used.

Step 2: Install the attribution snippet and remember the visit

Add a small attribution snippet to the website. When a visitor arrives, the snippet examines how the visit arrived — the same kind of technical signals analytics tools inspect — identifies the channel, and stores the attribution values in a browser cookie.

Storing the values matters because visitors rarely convert on the first page they see. Without a cookie, the UTM tags from the ad click would be lost before the form is submitted. With one, the tags survive the journey through the site.

Step 3: Add hidden fields to Wufoo forms

Add these hidden fields to each lead-capture form, such as a contact or quote-request form:

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

In Wufoo, drag in a Single Line Text field, open its properties, and enter hide in the CSS Keywords box to hide it from visitors. Repeat for each field name above. The landing page fields also record which page the visitor first arrived on and how that page is grouped, for example a full blog URL and its /blog group.

Step 4: Let submission carry the ad data into Wufoo

On submission, the attribution values are copied from the cookie into the hidden fields and saved by Wufoo alongside the lead's name and email. The same mechanism also cleans up inconsistent tagging: if some campaigns use utm_source=facebook and others use utm_source=facebook.com, both are grouped under Paid Social rather than counted as separate channels.

What to do with the captured data

Once the data is stored with each submission, Wufoo's own integrations or a tool such as Zapier can forward it onward:

  • CRM: send the values into systems such as HubSpot, Pipedrive or Salesforce, then report leads, customers and revenue by campaign.
  • Spreadsheet: send rows to Google Sheets or Excel for analysis, or connect a reporting tool such as Google Data Studio or Microsoft Power BI.
  • Email notifications: include the origin in the alert so the team sees where each lead came from without opening another system.
  • Billing platforms: pass the values through where a billing tool is connected, to relate ad activity to revenue.

Three reports worth building

Three reports illustrate the value of complete attribution:

  • Leads by channel: compare Facebook against Paid Search, Organic Search, Referral, Direct and Organic Social. If organic search produces more leads than paid social, shifting resources toward search may be the better investment.
  • Leads by network: if ads run across Facebook, Instagram and Messenger, see which network generates the most leads and concentrate effort there.
  • Leads by campaign: separate campaigns that create leads from those that only create clicks and visits, then refine the weaker campaigns.

Frequently asked questions

What if someone lands from a Facebook ad but submits a form on another page?

No. The cookie retains the UTM values while the visitor browses, so the values can still be written into the form even if the submission happens on a different page from the landing page.

Does this only work for Facebook traffic?

Yes. The same hidden-field approach can record Paid Search, Referral, Direct, Organic Search and Organic Social alongside Facebook, giving a fuller picture of lead origin.

What happens if UTM values are spelled inconsistently across campaigns?

It groups variant spellings such as facebook and facebook.com under Paid Social, so inconsistent UTM naming does not split the same channel into separate results.