Before you start
Install the base once, fire Lead only after the form confirms success, and check the event in Test Events and Pixel Helper. Use a test data source and a form with a real success state. Keep the Pixel away from pages containing sensitive information.
1. Install Meta's base code once
The Meta base loads fbevents.js, initializes the Pixel, and sends PageView. Replace both YOUR_PIXEL_ID placeholders with your account ID. Compare the sample with the current code generated in Events Manager before publishing.
<!-- Meta Pixel base example; replace both Pixel ID placeholders -->
<script>
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window, document,'script',
'https://connect.facebook.net/en_US/fbevents.js');
fbq('init', 'YOUR_PIXEL_ID');
fbq('track', 'PageView');
</script>
<noscript><img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=YOUR_PIXEL_ID&ev=PageView&noscript=1"
/></noscript>Install the account code on eligible pages or use a supported partner/tag-manager method, not both. See Meta's technical implementation training and Pixel Helper guide.
Verification note: Meta's official training and Pixel Helper materials support the installation flow and event checks, but the exact account-generated base block was not independently verifiable from an accessible Meta developer code page during this review. Treat the snippet above as a pattern, compare it with the current code from Events Manager, and use that generated code if they differ.
2. Send the Lead event after success
Call the standard Meta event when the form is confirmed, after the base is initialized:
fbq('track', 'Lead');Lead is a Meta event, not the generic generate_lead event. Do not fire it for every submit click or attach form contents. A GTM setup needs a Meta tag, trigger, and variable mapping; a generic data-layer push alone sends no event to Meta.
3. Test
Use Test Events and Meta Pixel Helper to confirm the intended Pixel and one Lead. If Conversions API also sends that lead, use Meta's deduplication design. A browser call does not prove provider processing.
Gate the base and event on consent. A wrong data source, duplicate installation, premature trigger, or sensitive page can undermine the test. Use the dashboard to inspect browser activity; check Meta Test Events and Pixel Helper to verify the event.
Official references
- Meta Pixel technical implementation training Checked November 10, 2026
- Meta Pixel Helper Checked November 10, 2026
What changed
- v1.0Initial bilingual guide; provider setup and validation steps checked against official documentation.
- v1.1Revised both language versions with verified provider code and clearer data-layer-to-tag mapping; checked official setup and validation references.