Automations
Tell Facebook Which Leads Turned Into Customers
Report each stage of a Facebook lead ad lead (new lead, booked, won) back to Facebook so it finds more people like your best leads. No IDs to copy; TrustPager finds the right dataset itself.
# Tell Facebook Which Leads Turned Into Customers
When someone fills in a Facebook or Instagram lead ad, Facebook only knows they became a lead. It never finds out who booked a call, who showed up, or who became a customer. The **Send Result to Facebook** automation step closes that gap. It reports each stage back to Facebook, so Facebook can learn what your good leads look like and show your ads to more people like them.
## Before you start
- Connect Facebook at https://app.trustpager.com/auto/integrations.
- Switch on the ad account you run your lead ads from at https://app.trustpager.com/growth/ad-manager. TrustPager uses it to find the right place to send results.
- Your leads must come in through Facebook or Instagram lead ads (instant forms). TrustPager saves each lead's Facebook lead ID when the lead arrives, and uses it to tell Facebook which lead the result is about.
## Add the step
Open any automation at https://app.trustpager.com/auto/automations and add the **Send Result to Facebook** step.
1. Pick your Facebook connection.
2. Under **How should Facebook find this person?**, choose **By Facebook lead ID (Facebook lead ads)**.
3. Choose or type an **Event Name**. This is the stage you are reporting, for example `Lead`, `Booked` or `Won`.
4. Leave **Facebook Dataset ID** blank. TrustPager finds the right place on your connected ad account, creates one if there is none, and remembers it.
5. Save. Changes save automatically.
## Which stages to report
Facebook wants every stage, starting with the plain new lead. A good setup is one step on each of these:
- The automation that runs when a lead ad lead arrives, reporting `Lead`.
- The automation that runs when a booking is made, reporting `Booked`.
- Any later stage you care about, such as a deal being won, reporting `Won`.
The step runs on any automation that has an opportunity attached, so it works on booking, stage change and won triggers as well as the lead ad trigger.
## What happens to leads that did not come from Facebook
Nothing. If the opportunity has no saved Facebook lead ID (for example, someone who booked straight from your website), the step is skipped and the automation carries on. A skipped step does not count as a failure and does not raise an error alert.
## Testing it safely
The **Test Event Code** field is optional. Copy a test code from Facebook Events Manager (Test events tab) and paste it in. While it is filled in, events show only in that Test events tab and never reach ad delivery. Clear it to go live.
## What to expect in Facebook
- Events appear in Facebook Events Manager, under the dataset TrustPager used, once Facebook has validated them. This can take about a day.
- To get the full benefit, set your lead ad campaign to the **Conversion Leads** goal. Facebook says this works best with around 200 leads a month, and it needs a few weeks of results before it fully learns.
- Each lead is reported once per stage. Running an automation again will not double count it.
## If the step fails
Failures appear on your automation run like any other step, and you can get alerts for them (see the Automation error alerts article). The most common causes are:
- No ad account is switched on in Ad Manager, so TrustPager cannot find where to send results.
- The Facebook connection needs reconnecting. Reconnect it at https://app.trustpager.com/auto/integrations.