How to capture Facebook Ads data in Zoho Forms
A Zoho Forms submission can carry more than a name and email. With a small tracking script and seven hidden fields, each lead can also arrive with the Facebook campaign, ad set, ad, and landing page that brought the visitor in. This guide walks through the setup and shows what the resulting data can answer.
Why capture Facebook Ads data at the form level
Facebook's own reporting shows clicks and impressions, but it does not tell you which of those clicks became a named lead in your form system. When the campaign, ad set, and ad travel with the form submission, you can compare campaigns on leads rather than clicks. You can also see which Facebook-owned network — Facebook, Instagram, Messenger, or another placement — produced the most form fills. The same setup can record organic search, direct, referral, and other channels, so Facebook results sit alongside the rest of your lead sources rather than in isolation.
Step 1: Tag each Facebook ad with UTM parameters
UTM parameters are extra text appended to the destination URL. They tell the tracking script how a visitor arrived. Add them to every active Facebook ad before you start collecting data, otherwise those visits arrive without a campaign label.
A typical tagged URL looks like this:
https://roipaths.com/integrations/zoho-forms?utm_medium=paidsocial&utm_source=facebook&utm_campaign=brand-campaign
A practical convention for Facebook ads is:
- utm_medium —
paidsocial - utm_source —
facebook - utm_campaign — the campaign name
- utm_term — the ad set name
- utm_content — the specific ad
Free UTM builders are widely available if you prefer not to type the parameters by hand. Keep the spelling consistent across ads; the tracking script can reconcile common variants, but clean input makes reports easier to read.
Step 2: Install the tracking script on your site
The tracking script is a short snippet placed on every page of your website. On each visit it reads the technical signals that describe how the visitor arrived — the UTM parameters, the referrer, and similar cues — and works out the visitor's origin. When the visitor later submits a form, the script writes the attribution values into the hidden fields you have added. Installation means adding the snippet to your site's template or header so it loads on every page. The snippet comes from the tracking provider, and its setup guide should be followed for the exact placement.
Step 4: Let the data flow into the submission
When a visitor lands from a Facebook ad, the script stores the UTM parameters in the visitor's browser. That storage matters: if the visitor reads a blog post, opens a pricing page, and then fills in a form, the original campaign is still available. On submission, the stored values are written into the hidden fields and saved alongside the lead's name, email, and other answers in Zoho Forms.
The result is a Zoho Forms record that contains both the lead details and the marketing context.
What each hidden field holds
Use this map to check that your form is set up correctly and to understand what will appear in your reports.
The drilldown values follow the UTM parameters you set: campaign, ad set, and ad. The landing page fields are captured independently of the UTM tags, so they still populate for organic and direct visits.
Worked example: one ad, one lead, one record
Suppose a Facebook ad points to https://example.com/pricing with these parameters:
?utm_medium=paidsocial&utm_source=facebook&utm_campaign=spring-launch&utm_term=lookalike-audience&utm_content=carousel-v2
A visitor clicks the ad, lands on the pricing page, navigates to the blog, and then fills in a demo request form. The hidden fields in the Zoho Forms submission would read:
- Channel: Paid Social
- Channel Drilldown 1: Facebook
- Channel Drilldown 2: spring-launch
- Channel Drilldown 3: lookalike-audience
- Channel Drilldown 4: carousel-v2
- Landing Page: https://example.com/pricing
- Landing Page Group: /pricing
The visitor's detour through the blog does not change the campaign values, because the script kept the original UTM parameters in the browser.
Pre-launch checklist
Run through these checks before you rely on the data:
- Every active Facebook ad has a destination URL with
utm_medium,utm_source, andutm_campaignat minimum. - The tracking snippet loads on every page, including landing pages and thank-you pages.
- The seven hidden fields exist on every lead capture form, spelled exactly as listed above.
- A test submission from a tagged URL produces a Zoho Forms record with the expected values in all seven fields.
- A test submission from an untagged visit still produces a record, with the channel reflecting organic, direct, or referral as appropriate.
If a value is blank, check the field name first, then the UTM tag on the ad, then whether the snippet is present on the page where the visit began.
Missing UTM tag vs. missing hidden field
These two failures look similar in a report — a blank campaign column — but they have different causes. A missing UTM tag means the visitor arrived without campaign information, so the script has nothing to write. The lead is still recorded, but it will be grouped under a non-campaign channel. A missing or misspelled hidden field means the script had the data but Zoho Forms had nowhere to put it. The submission is saved, but the campaign value is lost.
To tell them apart, check a single submission: if the Channel field has a value but the drilldown fields are blank, the hidden fields are probably misnamed. If Channel itself is blank or shows Direct, the visit likely lacked UTM parameters. Testing one tagged URL and one untagged URL side by side makes the difference visible.
When UTM spelling varies between campaigns
Teams often end up with utm_source=facebook in one campaign and utm_source=facebook.com in another. The tracking script recognizes these variants as the same source and groups both under one channel — Paid Social in this case — so the source does not split into two report rows. That reconciliation reduces cleanup work, but it is not a substitute for a naming convention. Agree on a small set of allowed values and reuse them.
Where the captured data can go next
Once the values are in Zoho Forms, they can travel to the systems where you make decisions:
- CRM — Send submissions to Zoho CRM or another CRM. Reports can then show leads per campaign, conversion to customer, and revenue generated.
- Spreadsheet — Push records to Zoho Sheet or Google Sheets through a Zoho Forms integration or a third-party connector such as Zapier. Basic analysis can happen in the sheet, or you can connect Zoho Analytics or Google Data Studio for deeper reporting.
- Email notifications — If you respond to leads from your inbox, include the attribution fields in the notification so each message shows where the lead came from.
- Billing platform — If Zoho Forms is connected to a billing tool such as Square or PayPal, the attribution data can travel with the transaction and support revenue reporting.
Three reports worth building first
Leads by channel. Since the script records every channel, not just Facebook, this report sets Paid Social alongside Organic Search, Direct, and Referral. It shows whether Facebook is producing more or fewer leads than the alternatives.
Leads by network. Facebook ads can run across Facebook, Instagram, Messenger, and other placements. Grouping leads by network shows which app is producing form fills, which is more useful than click volume alone.
Leads by campaign. A monthly view of Facebook leads broken down by campaign separates campaigns that generate clicks from campaigns that generate leads. That distinction is the basis for shifting budget toward the campaigns that actually convert.
Summary
Capturing Facebook Ads data in Zoho Forms comes down to four moves: tag the ads, install the script, add the seven hidden fields, and let the submission carry the values. The payoff is a lead record that names the campaign, ad set, ad, and landing page — and a reporting base that covers every channel, not only paid social.
| Field | What it records | Example from a Facebook ad |
|---|---|---|
| Channel | The broad source category | Paid Social |
| Channel Drilldown 1 | The top-level source | |
| Channel Drilldown 2 | The campaign | brand-campaign |
| Channel Drilldown 3 | The ad set | prospecting-audience |
| Channel Drilldown 4 | The specific ad | video-testimonial |
| Landing Page | The full URL of the first page visited | https://example.com/pricing |
| Landing Page Group | The section of the site that page belongs to | /pricing |
Frequently asked questions
Do I need to add UTM parameters to every Facebook ad?
Yes, if you want campaign-level attribution. Without UTM parameters the script can still identify the channel from other signals, but the campaign, ad set, and ad names will be missing from the submission.
What happens if a visitor fills in the form on a different page from the ad landing page?
The UTM parameters are stored in the visitor's browser, so the original campaign values are written into the hidden fields regardless of which page the form is on.
Can the same setup capture leads from organic search and direct visits?
Yes. The script records the channel for every visit, so organic search, direct, referral, and other sources appear alongside Paid Social in the same Zoho Forms submissions.
Why are my campaign fields blank even though the ad has UTM tags?
Check the hidden field names in Zoho Forms first. The seven fields must be spelled exactly as listed in the setup steps. If the names are correct, confirm that the tracking snippet is loading on the page where the visit began.