On this page
What this issue is
The Meta Pixel is a snippet of JavaScript that sends visitor actions from your site to Meta. The base code loads the pixel library (fbevents.js), runs fbq('init', 'YOUR_PIXEL_ID') and sends a PageView. Event code such as Lead or Purchase depends on that base code being present on the same page.
Why it costs you leads or sales
Meta ads optimise on the events they receive. If a page has no pixel, visitors who reach it are invisible. Conversions that happen there are not reported, so campaigns look worse than they are and the delivery system learns from less data. Retargeting audiences also miss those people.
- Ad clickVisitor lands on the landing page
- Landing pagePageView sent
- Form pagePixel base code missing
- Lead eventNever sent
- Meta optimisationSees no conversions
The pixel is present on the ad landing page but missing on the form page, so every later event is lost.
Example: 100 real leads came from ads in a week, but the pixel was missing on the form page, so Meta only saw a fraction.
How to check if your site has it
List your funnel pages
Write down each URL a visitor passes through: ad landing page, form or product page, cart, checkout, thank-you page. Include pages on other subdomains or tools.
Use Meta Pixel Helper
Install the Meta Pixel Helper Chrome extension, open each page and see whether it reports your pixel and a PageView. 'No pixel found' means the base code is absent or blocked.
View the page source
Open the page, view source and search for
fbevents.jsand your pixel ID. In the browser Network tab, filter forfacebook.com/trto see requests going out.Check Events Manager
In Meta Events Manager, open your pixel, then Test events. Enter a page URL and browse it to see whether events arrive live.
Test with consent both ways
If you use a cookie banner, check the page after accepting. If the pixel only loads after consent, that is expected, but make sure it does load once consent is given.
How to fix it
The goal is one install that covers every funnel page, not a separate paste on each. Pick the method that matches how the page is built.
<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>Use a header injection method
Add the base code to the site header with your theme's header scripts option or a header and footer plugin. Avoid pasting it into a single page.
Check page builders and landing page plugins
Landing pages made with a separate plugin or blank template may skip the theme header. Add the code in that tool's own header scripts setting.
Clear caches
Purge your caching plugin and CDN so the updated header is served.
Connect Meta in Sales channels
Install the Facebook & Instagram sales channel and connect your pixel under its data sharing settings. This covers storefront and checkout pages.
Avoid a second copy in theme.liquid
If you also pasted code into theme.liquid, remove it so the pixel does not fire twice.
Create a Custom HTML tag
Paste the base code into a Custom HTML tag with the trigger 'Initialization - All Pages' or 'All Pages'.
Confirm GTM is on every page
The container snippet must be on each funnel page and subdomain. A tag cannot fire on a page that lacks the container.
Publish
Use Preview mode to check the tag fires, then click Submit and Publish. An unpublished workspace changes nothing live.
Add to project custom code
Go to Project settings, then Custom code, and paste the base code in Head code. Publish the site.
Check page-level overrides
Make sure the funnel pages are published to the same domain where the code is applied.
Add to funnel settings
Open the funnel, go to Settings, and add the base code under the Head tracking code. Funnel-level code applies to its pages.
Repeat for each funnel and website
Each funnel or website has its own tracking code field, so add it to every one you use for ads.
Use Marketing Integrations
In Marketing Integrations, connect Meta Pixel with your pixel ID, or add a custom code snippet under Settings, Custom code, applied to All pages in the Head.
Add code injection
Go to Settings, Advanced, Code Injection and paste the base code in the Header. Squarespace's Meta Pixel integration under Marketing can also hold the ID.
Put it in a shared layout
Place the base code in the shared head partial or layout so every template includes it.
Cover hosted or separate pages
Pages on other subdomains, booking tools or hosted checkouts need their own install or the tool's pixel setting.
Re-add event code
Make sure events such as Lead or Purchase fire on the right pages once the base code is present.
Check consent handling
If your consent tool blocks marketing scripts, configure it so the pixel loads after consent is granted.
Keep one install
Do not use both a plugin and manual code for the same pixel, or PageView will fire twice.
How to confirm it's fixed
- Meta Pixel Helper shows your pixel ID and a PageView on every funnel page
- Network tab shows a request to facebook.com/tr on each page
- Events Manager Test events shows PageView and your conversion events live
- Only one PageView fires per page load
- The pixel ID matches the one in your ad account
- Thank-you page sends the expected conversion event once
How to prevent it happening again
Pixels go missing after redesigns, new landing page tools, theme changes, domain moves and tag manager edits. Install the pixel in one shared place and keep a list of every funnel page and tool that serves your ads.
- Install once at site level, not page by page
- Add new landing page tools to your pixel checklist before launch
- Re-test the funnel after theme, plugin or builder changes
- Publish GTM changes with clear version notes
- Review Events Manager for sudden drops in PageView volume
How FunnelGuard handles this
FunnelGuard detects this today. A robot visitor runs your real customer journey on a schedule, from the EU or the US, and checks the tracking hits sent to ad platforms, including Meta, at each step. If a funnel page does not send the expected Meta hit, the check fails.
A failure is re-checked from a second region before one alert goes out by email, Slack, Teams, WhatsApp, webhook or PagerDuty, with a screenshot and a likely cause. Test traffic is marked with utm_source=funnelguard and fg_test=1, and never clicks real ads. The Free plan covers 1 site and 2 journeys with daily checks, and paid plans start with a 3-day free trial.
Questions people ask
Why is my Meta Pixel not showing on some pages?
The base code is probably installed on one page or template rather than site-wide. Landing page tools, hosted checkouts, other subdomains and unpublished tag manager changes are common reasons. Add the code to a shared header or a GTM tag that fires on all pages.
How do I check if the Meta Pixel is installed on a page?
Open the page with the Meta Pixel Helper Chrome extension and look for your pixel ID and a PageView. You can also search the page source for fbevents.js or filter the Network tab for facebook.com/tr. Events Manager Test events confirms it from Meta's side.
Why does Meta Pixel Helper say no pixel found?
The base code is missing, blocked or loading after consent that has not been given. An ad blocker or privacy extension in your browser can also hide it. Test in a clean browser profile and check the page source.
Do I need the Meta Pixel on the thank-you page?
Yes, if you track leads or purchases there. The thank-you page usually fires the Lead or Purchase event, and without the base code on it that event cannot be sent. Hosted or external thank-you pages need their own pixel setup.
Can I add the Meta Pixel with Google Tag Manager?
Yes. Create a Custom HTML tag with the base code and fire it on All Pages, then publish the container. The GTM snippet itself must be on every funnel page for the tag to run.
Will a missing pixel hurt my Meta ad performance?
Yes. Meta cannot see conversions or build audiences from pages without the pixel, so reporting looks lower and optimisation has less data. Fixing it restores the signal going forward, but it does not recover past events.
Can FunnelGuard tell me when the Meta Pixel disappears from a page?
Yes. FunnelGuard runs your funnel on a schedule and checks the Meta tracking hits at each step. If one is missing, it re-checks from a second region and sends one alert with a screenshot and a likely cause.
Related issues
- TRK-177Pixel init called with no ID or invalid IDFix guide
- TRK-167Wrong Pixel ID (old business manager pixel)Fix guide
- TRK-168Two Pixel IDs firing, events splitFix guide
- TRK-171Lead event missing on submitFix guide
- TRK-174PageView firing twice per pageFix guide
- TRK-190Domain not verified in Business ManagerFix guide