Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Meta Pixel PageView firing twice: how to find and fix it

TRK-174Medium impactDetectedBy FunnelGuardPublished Updated
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.

How a duplicate PageView happens
  1. Visitor loads pageOne page load
  2. Install A firesPlugin or theme sends PageView
  3. Install B firesGTM or hardcoded code sends PageView again
  4. Meta receives 2 eventsTraffic and audiences inflated

The page loads one time, but two installs each send PageView.

Reported vs real page viewsExample numbers
Reported vs real page views (example)Real page loads: 1,000 views; PageView events in Meta: 2,000 views07671,5331,0002,000Real page loadsPageView events in Me…views

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

Check for duplicate PageView
  1. 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.

  2. Check the Network tab

    Open DevTools, go to Network, reload and filter by facebook.com/tr. Count the requests with ev=PageView. There should be one per page load.

  3. View the page source

    Search the source for fbevents.js and fbq('init'. More than one init for the same ID, or two copies of the base code, confirms a double install.

  4. 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.

Remove the duplicate install
  1. 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.

  2. 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.

  3. Clear caches

    Purge your caching plugin and CDN so the old code is gone.

Meta Pixel base code: it should appear once per pagehtml
<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

Confirmation checklist
  • 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

Prevention
  • 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.

How a duplicate often appears
  1. Day 1

    Pixel installed through the platform integration

  2. Week 6

    Agency pastes the same base code into the theme header

  3. Week 6

    Every page now sends PageView twice, unnoticed

  4. 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.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: no_duplicate_events.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.