Owner / Manager · 10 min read
Track your ads and send lead results to Meta
What you'll get
See which campaign, ad set and ad brings customers, not just form fills, and send every lead's result back to Meta so it finds more people who buy.
Before you start
- Meta leads already arriving through Pabbly Connect or Zapier (see Connect Meta Lead Ads).
- Owner sign-in to edit the Pabbly workflow and the integration settings.
- For the Meta part: admin access to your business in Meta Business Settings and Events Manager.
- Who
- Owner / Manager
- Read time
- 10 minutes
Step 1: Add the ad fields to your Pabbly workflow
Open your Pabbly workflow and the API step that posts to GrowthForceOS. Add one row per line below: hover the last row and use Pabbly's plus button, type the label exactly, and pick the value from the Facebook Lead Ads step. The step numbers Pabbly shows next to each value differ between workflows, so pick by name. GrowthForceOS keeps these on every lead with nothing to set up on our side.
Label in Pabbly Pick this value from the Facebook step Campaign Campaign Name Adset Adset Name Ad Name Ad Name meta_lead_id Leadgen Id (the lead, not Page Id or Entry Id) meta_campaign_id Campaign Id meta_adset_id Adset Id meta_ad_id Ad Id meta_form_id Form IdStep 2: Save, test once and check the lead
Save the Pabbly step and send one test. Open the lead in GrowthForceOS. Under its source you'll see 'Ad campaign', 'Ad set' and 'Ad name'. Owners and managers also see a 'Meta' row: 'Linked to Meta' means the lead ID came through; 'Not linked — no Meta lead ID' means the meta_lead_id row is missing or mapped to the wrong value.
Step 3: See which ads bring customers
Open Dashboard › Campaigns. Switch between 'By campaign', 'By ad set' and 'By ad'. Each row shows leads, contacted, connected, won, won value, junk % and win %. Sort your thinking by won value and junk %, not by lead count: a cheap ad full of junk costs your team time.
Step 4: Create the Meta dataset and token
In Meta Events Manager, with your business selected, connect a new data source for your CRM (Conversions API) and link it to your ad account and the Facebook Page that owns the lead forms. Copy the dataset's ID. Then, in Meta Business Settings, add a system user, give it that dataset, the ad account and the Page, and generate a token. Meta's menu names change from time to time, so follow their wording. Treat the token like a password.
Step 5: Paste them into GrowthForceOS
Open Setup › Integrations and find 'Send lead results to Meta'. Paste the dataset ID into 'Dataset ID' and the token into 'Conversions API access token', then click 'Save'. GrowthForceOS checks them with Meta before saving. To see it work, open Test events in Events Manager, copy its test code into 'Test code from Events Manager' and click 'Send test event'. From then on, every lead with a Meta lead ID sends its result to Meta within about a minute of a rep recording it. Only the lead ID goes to Meta, never a name, phone or email.
Step 6: Add your ad spend
On Setup › Integrations, find 'Ad spend from Meta', type your ad account ID (the act_ number in the Ads Manager address bar) into 'Ad account ID' and click 'Connect'. It reads spend with the token you saved for lead results, so first give that system user view-performance access to the ad account in Meta Business Settings. The last 90 days are read straight away and refreshed every 6 hours. Dashboard › Campaigns then shows ad spend, cost per lead, cost per sale and return on spend, plus anything spending money with no leads. Owners see spend; reps never do.
Step 7: Match your older leads
Leads that arrived before Pabbly sent meta_lead_id have no Meta lead ID yet. In Meta Ads Manager, open your lead ad's leads (or Leads Center) and download them as CSV; Meta keeps about 90 days. Back on the 'Send lead results to Meta' card, under 'Match older leads from Meta's download', click 'Choose file' and pick that file. Check the counts, then click the Link button. Leads are matched by phone, then email; only the missing Meta lead ID and empty ad details are filled in, and each linked lead's current result goes to Meta. Delete the file afterwards: it holds your customers' details.
Step 8: Map the events in Meta, then change the campaign goal
After a few days of results, open the dataset in Events Manager and set up its lead funnel (Conversion Leads). Map the five event names below. After two to four weeks of results, set your lead campaigns' performance goal to conversion leads, starting with your biggest campaign.
lead_submitted a Meta lead arrives lead_qualified a rep marks it Connected lead_converted a rep marks it Won (with the deal value) lead_not_converted a rep marks it Lost (with the reason) lead_disqualified a rep marks it Junk (with the reason)Step 9: Keep the results true
Meta only learns what your team records. Mark every lead's outcome the same day, pick a reason for every Lost and Junk, and enter the deal value on Won. Use Junk only for leads that were never real; use Lost for real people who said no.
If something's off
A lead shows 'Not linked — no Meta lead ID'.
The meta_lead_id row is missing in Pabbly, or it's mapped to Page Id or Entry Id. Both are your Page's number. Map it to Leadgen Id. Leads that already arrived stay unlinked.
Campaign, ad set or ad is empty on new leads.
Check the Pabbly labels read Campaign, Adset and Ad Name, and that each value is picked from the Facebook step, not typed in.
A repeat enquiry didn't change the lead's ad.
On purpose. A lead keeps the ad that first brought it, so reports credit the right ad. A lead whose first post carried no ad details picks them up from the next one.
Saving says Meta didn't accept the dataset ID and token.
Use the dataset's own ID from Events Manager, not your ad account or Page number, and check the system user was given that dataset before you generated the token. Then click 'Save' again.
The card says Meta refused the last result.
The token was usually removed or lost access to the dataset. Generate a new token for the system user, click 'Change dataset or token' and save it. Results recorded while it failed are tried again for a while.
Will a lead arrive twice if I use one-click connect and Pabbly?
No, as long as Pabbly sends meta_lead_id. The second delivery of the same Meta lead is recognised and ignored.
Try GrowthForceOS
Trying GrowthForceOS? 60 days free, no card.
No card · 20 seats · 25,000 leads a month · Nothing switches off on day 60