On this page
What this issue is
PageView is the basic event the Meta Pixel sends each time a page loads. Normally you should see one PageView per page load. If you see two, the pixel base code has run twice, or fbq('track', 'PageView') has been called two times.
The most common causes are: the pixel added by a platform integration (Shopify, WordPress plugin, Wix, Squarespace) and also pasted into the theme header; the pixel in Google Tag Manager (GTM) and also hardcoded; two tags in GTM that both send PageView; and a single page app that calls PageView on every route change on top of the default one.
Why it costs you leads or sales
A duplicate PageView inflates your traffic numbers in Meta. Audiences built from site visitors get padded, and frequency and landing page view counts are wrong. Cost per landing page view and any rate that uses PageView as a base (such as conversion rate) look better or worse than they really are.
It is also a warning sign. If the base code runs twice, other events such as Lead or Purchase may fire twice too. That would double count conversions and feed Meta's optimisation bad data. Fixing PageView often fixes those as well.
- Visitor loads pageOne page load
- Install A firesPlugin or theme sends PageView
- Install B firesGTM or hardcoded code sends PageView again
- Meta receives 2 eventsTraffic and audiences inflated
The page loads one time, but two installs each send PageView.
Example: 1,000 real page loads reported as 2,000 PageView events when the pixel is installed twice.
How to check if your site has it
Use Meta Pixel Helper
Install the Meta Pixel Helper extension for Chrome, open your page and click the icon. If it lists PageView with a number like 2 next to it, or shows the same pixel twice, you have a duplicate.
Check the Network tab
Open DevTools, go to Network, reload and filter by
facebook.com/tr. Count the requests withev=PageView. There should be one per page load.View the page source
Search the source for
fbevents.jsandfbq('init'. More than oneinitfor the same ID, or two copies of the base code, confirms a double install.Check Events Manager
In Meta Events Manager, open your pixel, then Test events. Browse your site and see whether each page load shows two PageView lines.
How to fix it
The fix is always the same idea: pick one place to install the pixel and remove the others. The steps differ by platform.
List active pixel sources
Check plugins that can add the pixel (for example Meta for WordPress / Facebook for WooCommerce, a header-and-footer plugin, an SEO or marketing plugin) and your theme settings.
Remove the extra copy
Keep one. Delete pasted code from the theme header or the header scripts plugin if a pixel plugin already adds it, or switch the plugin's pixel off if you prefer GTM.
Clear caches
Purge your caching plugin and CDN so the old code is gone.
Check the sales channel
In Admin, open Settings > Apps and sales channels (or Sales channels > Facebook & Instagram) and see which pixel is connected. Also check Settings > Customer events for custom pixels.
Remove pasted code
Search theme.liquid (Online Store > Themes > Edit code) for
fbq(and delete any manual base code if the sales channel already installs the pixel.Remove extra custom pixels
Delete any Customer events custom pixel that also loads the same Meta Pixel.
Find all Meta tags
In your container, search for tags using the Facebook Pixel template or custom HTML containing
fbq(. Look for two tags that both send PageView.Fix the triggers
Keep one PageView tag on All Pages. Make sure event tags (Lead, Purchase) do not also call
fbq('init')orfbq('track','PageView').Check for a hardcoded copy
If the site also has the pixel in its code, remove one of the two. Publish the container after changes.
Check custom code
In Site settings > Custom code, look at Head code and Footer code. Also check page level custom code in Page settings.
Remove the repeat
Keep the base code in one place only, then publish the site.
Check funnel and site tracking code
In the funnel or website Settings, look at the Tracking code (header) area and any step level custom code for a pixel.
Remove the duplicate
If a Facebook Pixel ID field is also filled in for the funnel, do not paste the base code again. Use one or the other, then republish.
Check Marketing Integrations
Open Marketing & SEO > Marketing integrations and see if Facebook Pixel is connected there.
Check custom code
Under Settings > Custom code, remove any pasted pixel code if the integration is already active. Publish.
Check the built-in setting
Go to Settings > Marketing > Facebook Pixel and see whether an ID is entered.
Check code injection
In Settings > Advanced > Code injection, remove pasted base code if the built-in ID is used.
Search your templates
Search the whole codebase for
fbevents.jsandfbq('init'. Make sure the base code is in a shared layout once.Guard single page apps
If you call PageView on route changes, do not also fire it on first load. Fire it once per route.
<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>How to confirm it's fixed
- Clear caches and reload the page in a fresh private window
- Meta Pixel Helper shows PageView once, with no repeat
- Network tab filtered by facebook.com/tr shows one ev=PageView per load
- Events Manager > Test events shows a single PageView per page visit
- Lead and Purchase events on your funnel also fire once
- Check a key landing page, a form page and the thank-you page
How to prevent it happening again
- Keep one documented owner for the pixel install
- Before adding a new plugin or app that mentions Meta or Facebook, check whether it installs the pixel
- After theme changes, app installs or GTM publishes, re-check with Pixel Helper
- Use GTM versions and notes so changes can be traced
- Run an automated check on your key pages so a new duplicate is caught quickly
How FunnelGuard handles this
FunnelGuard detects this issue. A robot visitor runs your real customer journey on a schedule and records the tracking hits sent to Meta on each step. The no_duplicate_events check flags when the same event, such as PageView, is sent more than once for a single page load.
If a duplicate is found, the 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 (utm_source=funnelguard, fg_test=1) so you can recognise it. The Free plan covers 1 site and 2 journeys with daily checks and no card, and paid plans have a 3-day free trial.
Day 1
Pixel installed through the platform integration
Week 6
Agency pastes the same base code into the theme header
Week 6
Every page now sends PageView twice, unnoticed
Next check
Automated check flags duplicate events and you remove one install
Questions people ask
Why is my Meta Pixel firing PageView twice?
The pixel is almost always installed in two places, such as a platform integration plus code pasted in the theme, or Google Tag Manager plus hardcoded code. Each install sends its own PageView. Find both and remove one.
How do I check if my Facebook Pixel fires twice?
Open your page with the Meta Pixel Helper Chrome extension and look for PageView listed twice. You can also filter the Network tab by facebook.com/tr and count requests with ev=PageView after one reload.
Does a duplicate PageView hurt my Meta ads?
It inflates traffic counts and audience sizes, and skews any rate based on page views. It can also be a sign that conversion events fire twice, which would feed Meta wrong data for optimisation.
Can Google Tag Manager and a plugin both send PageView?
Yes, and it is a very common cause. If a plugin or Shopify's sales channel installs the pixel and a GTM tag also does, both send PageView. Keep one and disable the other.
Is PageView firing twice the same as two Pixel IDs firing?
No. Here the same pixel sends the event twice. With two Pixel IDs, two different pixels each send events, and data is split between them.
Why does PageView fire twice on my single page app?
Often the base code sends PageView on first load and your router sends it again on the initial route. Fire PageView once per route and avoid a second call on first load.
How can I be alerted if the Meta Pixel starts firing twice again?
FunnelGuard runs your journeys on a schedule and its no_duplicate_events check flags repeated events. You then get one alert with a screenshot and a likely cause after a second region re-check.
Related issues
- TRK-168Two Pixel IDs firing, events splitFix guide
- TRK-166Meta Pixel missing on funnel pageFix guide
- TRK-170Lead event fires on thank-you page reload (duplicate leads)Fix guide
- TRK-169Lead event fires on page load instead of submitFix guide
- TRK-177Pixel init called with no ID or invalid IDFix guide
- TRK-178event_id missing on browser eventsFix guide