Before you start#
- The pixel base code is on every page and
PageViewshows in Test events (How to install the Meta pixel on your website). - You know what “a lead” is on your site: a thank-you page URL, or a form that shows success without changing the page.
1Pick the moment#
A lead is when someone finishes the form, so choose which of these moments counts:
- A thank-you page (
/thanks,/demo-booked) that only successful submissions reach. Easiest and most reliable. - A form-success callback when the page does not change (single-page sites, embedded forms).
Fire the event once per lead, and only there.
2Add the event (code route)#
On the thank-you page, after the base code, add:
<script>fbq('track', 'Lead');</script>
For a form-success callback, call the same line inside your form tool’s “on success” hook, or send it through Google Tag Manager as a Custom HTML tag on a form-submission trigger. Lead is a Meta standard event that needs no configuration, and Madder lists it as “Leads on your site (the pixel’s Lead event)”.
3Or use a custom conversion (no-code route)#
If you cannot add code, let Meta count visits to the thank-you URL as leads. As of September 2026:
- Events Manager › Custom conversions › Create custom conversion.
- Name it, choose your dataset as the data source, and select All URL traffic as the event.
- Under rules choose URL › contains and type the unique part of the thank-you path, e.g.
/thanks. Set the standard event to Lead, then Create.
Rules cannot be edited afterward. Make sure the thank-you URL is reachable only after a submission, or curious visitors count as leads.
4Check it#
Open Test events, submit your own form, and look for Lead (or the custom conversion name) within a minute. The Meta Pixel Helper extension shows it on the thank-you page too, and Madder’s pixel window, opened again with Set up tracking, counts the events Meta received in the last 24 hours.
5Tell Madder the event counts#
Madder’s campaigns keep aiming at visits, and Lead events do not change that. To have Madder count them, mark the site’s lead line as described in What counts as a lead. The line appears only after the first lead Meta credits to an ad, never after a test lead you send yourself, and a custom conversion shows there as “Custom conversion” with its ID.
If it doesn’t work#
- Lead fires on every page
- The
fbq('track', 'Lead')line was pasted into the site-wide header; move it to the thank-you page only. - Lead never appears but PageView does
- The form redirects somewhere without the pixel, or the success callback never runs. Test in a private window.
- Counts are far higher than real leads
- The thank-you URL is reachable directly or from search; block it from indexing, or switch to the code route.
- Custom conversion shows “no activity”
- The URL rule does not match (check
www, trailing slash, query strings). Create one with a shorter fragment. - Madder shows no leads after the first
Leadevents - Nobody has said they count yet, or the leads didn’t come from an ad. Once an ad has brought one, mark the action under Say what counts as a lead; Madder recounts the last 30 days at its next sync.