How to Capture Facebook Ads Data in HappyForms
If you run Facebook Ads and collect leads through HappyForms, the useful question is not just how many submissions you got — it is which ad, campaign and network produced them. This guide shows a four-step setup that tags your ads with UTM parameters, installs a small attribution snippet, adds hidden fields to your forms, and lets each submission carry the source data alongside the lead's name and email.
Four-step setup
The workflow has four stages. Each one is small, but skipping any of them breaks the chain between the ad click and the form submission.
- Add UTM parameters to every active Facebook Ad.
- Install the attribution snippet on your website.
- Add the hidden fields to your lead capture forms.
- Let the snippet write the ad data into those hidden fields so HappyForms captures it on submit.
Step 1: Tag your Facebook Ads with UTM parameters
UTM parameters are extra text appended to the destination URL. They tell analytics and attribution tools where a visitor came from. For a Facebook campaign, a typical tagged URL looks like this pattern:
example.com/landing-page?utm_medium=paidsocial&utm_source=facebook&utm_campaign=brand-campaign
A practical naming convention for Facebook placements is:
- UTM Medium = Paid social
- UTM Source = Facebook, Instagram or the network the ad runs on
- UTM Campaign = the campaign name
- UTM Term = the ad set name
- UTM Content = the specific ad
Free URL builders exist if you prefer not to type the parameters by hand. The important habit is consistency: pick a convention and apply it to every active ad.
Step 2: Install the attribution snippet
The attribution tool is a small piece of code added to your website. On each visit it reads technical signals about how the visitor arrived and uses them to work out the origin — for example, a Facebook Ad. When the visitor submits a form, the tool writes that attribution data into the hidden fields you have added, and HappyForms stores it with the rest of the submission.
Installation follows the provider's own setup documentation. Confirm the trial length, signup route and install instructions with the site owner before publishing this step.
Step 4: Let the data flow into HappyForms
When a visitor arrives from a Facebook Ad, the snippet captures the UTM parameters and keeps them in a cookie in the visitor's browser. That means the parameters survive while the visitor browses other pages. When the visitor eventually submits a form, the snippet writes the ad data into the hidden fields, and HappyForms captures it together with the lead's name, email and other answers.
What each hidden field receives
A quick field map helps you confirm the setup is complete before you test a submission:
- Channel — the broad source category, such as Paid Social.
- Channel Drilldown 1–4 — progressively finer detail, such as network, campaign, ad set and ad.
- Landing Page — the full URL of the page the visitor first landed on.
- Landing Page Group — the section of the site, such as /blog.
If a field is missing from the form, that piece of attribution will not be stored with the submission.
Where the captured data can go
Once HappyForms holds the ad data, you can route it onward using HappyForms' native integrations or a third-party connector such as Zapier:
- CRM — send the data into Salesforce, Pipedrive, HubSpot or a similar system to report on leads, customers and revenue by ad source.
- Spreadsheet — send it to Google Sheets or Excel to build charts, or connect a reporting tool for deeper analysis.
- Email notifications — if you respond to leads by email and do not use a CRM, append the ad data to the lead notification so the origin appears in your inbox.
Why this approach handles common attribution gaps
Several methods can capture Facebook Ads data in HappyForms. The differences that matter in practice are coverage, persistence, data cleaning and landing-page detail.
Coverage. The setup records leads from other channels too — Paid Search, Referral, Organic Social, Direct and Organic Search — so you can compare Facebook against the rest of your mix rather than viewing it in isolation.
Persistence. Some methods only read UTM parameters from the page where the form is submitted. Picture someone who clicks a Facebook Ad and lands on your pricing page, then follows a link to a dedicated booking page to fill in the form. If nothing carries the parameters across, that submission arrives in HappyForms with no ad source attached. Storing the parameters in a browser cookie keeps the original source attached no matter which page hosts the form.
Data cleaning. Inconsistent UTM values are common — for example, utm_source=facebook in some campaigns and utm_source=facebook.com in others. A tool designed to recognise these variations can still assign the lead to the correct channel, such as Paid Social.
Landing-page detail. Beyond ad data, the setup records the landing page URL and a landing page group (for example, /blog). That lets you report on leads from specific site sections or individual posts.
Three reports to run once data is flowing
If the captured data reaches a CRM or spreadsheet, these reports are a useful starting point:
- Leads by channel — compare Facebook Ads against other channels to judge relative effectiveness and guide budget allocation.
- Leads by network — if you advertise across Facebook, Instagram and Messenger, see which network produces the most leads.
- Leads by campaign — view monthly lead volume broken down by campaign to see which campaigns are producing leads and which are not.
Pre-launch checklist
Before you rely on the data, confirm each link in the chain:
- Every active ad has UTM parameters with a consistent naming convention.
- The attribution snippet is installed on every page that hosts a form.
- All seven hidden fields exist on each lead capture form.
- A test submission from a tagged ad URL shows the expected values in the hidden fields.
- The destination (CRM, spreadsheet or email notification) receives the hidden field values.
- A visitor who lands on one page and submits a form on another still carries the original source.
Frequently asked questions
What happens if a visitor lands on my homepage and submits a form on a different page?
The UTM parameters are saved in a cookie in the visitor's browser, so the original source is still written into the hidden fields when the form is submitted on another page. Methods that rely only on the URL of the form page would lose that data.
Do I need different UTM values for Facebook, Instagram and Messenger?
Use the UTM Source field to record the network — Facebook, Instagram or whichever network the ad runs on. That lets a leads-by-network report separate performance across placements.
What if my UTM source values are inconsistent across campaigns?
A tool designed to recognise UTM inconsistencies can still assign leads to the correct channel even when values differ, such as utm_source=facebook versus utm_source=facebook.com. The lead is grouped under the correct channel, in this case Paid Social.
Which HappyForms forms need the hidden fields?
Add them to every lead capture form — the forms where visitors submit details, such as Contact Us or Request a Quote. A form without the hidden fields will not store the attribution data.