Meta Pixel fires PageView or Purchase twice: the Pixel installed twice, an app plus manual code, or a reload.
- “Meta Pixel firing twice”
- “Facebook Pixel PageView firing twice”
- “Meta Pixel Purchase event firing twice”
- “Pixel Helper shows PageView twice”
- “Meta Pixel duplicate PageView events”
- “Meta Pixel installed twice”
- “Facebook & Instagram app and theme.liquid pixel both installed”
- “Meta Pixel in GTM and hard-coded in the header”
- “Meta Purchase fires again when the thank you page is reloaded”
Baris Asa, tracking consultant, London · Last checked: November 2026
When the Meta Pixel fires PageView or Purchase twice on one page load, the usual cause is two browser senders on the same Pixel ID, or one sender running twice. The common pair is a platform app (Shopify’s Facebook & Instagram app, a WooCommerce plugin) plus Pixel code pasted into the theme or added in GTM. Meta’s deduplication pairs a browser copy with a server copy, not two browser copies, so treat both as counted. Keep one install per Pixel ID and remove the other. On Shopify, a doubled Purchase usually comes from a second app or custom pixel in Settings, Customer events, not the theme. Left alone, purchases run high and return on ad spend is overstated.On file as F-101 . This note is about two browser copies. One browser copy plus one server copy (the Conversions API) is a different fault with a different fix: Meta CAPI and Pixel double counting purchases, F-102 .
Is it really firing twice?
From the reports. Ads Manager counts only purchases it attributes to your ads, so for most shops it sits below total orders. Purchases in Ads Manager at or above your orders for a closed week is the signal to check further. The browser count below confirms it.
From the browser (you or your developer, about five minutes):
- Turn off your ad blocker for your own site. Blockers stop the requests you are about to count.
- Open the browser’s developer tools, Network tab, and type
facebook.com/trin the filter box. - Load one product page. Each request is one event:
id=in the address is the Pixel ID,ev=the event name. In my experience larger events are sometimes sent as POST; if a request has noev=in its address, open its Payload tab. - For Purchase, place a test order with a 100% discount code (or pay and refund it) and count the Purchase requests on the confirmation page. Then refresh the page and count again.
| What you count | What it means |
|---|---|
| One PageView per Pixel ID | Fine |
Two PageViews with the same id= | Two senders, or one sender running twice |
Two Purchases with the same id= on one confirmation page | Every sale counted twice |
| One Purchase, then another after the refresh | The reload cause, below |
The same event to two different id= values | Two Pixels. Each counts once in its own dataset. Not a double inside one, but check you want the second Pixel at all |
This is Shopify’s own duplicate test too: open developer tools and “check for multiple requests to the same analytics endpoint during a single page load or event” (Shopify Help: migrating pixels). On Shopify, app and custom pixels run in a sandbox, and their requests still show in the Network panel. Meta’s view of the same check is Test events in Events Manager.
If you use the Pixel Helper extension (now Meta Ads Data Advisor), the same Pixel ID showing PageView twice reads the same way: two senders. Two different IDs is two Pixels, which the table covers. Meta’s setup checklist for the extension reads “There is no duplicate Pixel code on any page” (Meta: Meta Ads Data Advisor). What each of its other messages means is in Meta Pixel Helper errors and warnings.
Why does PageView double?
The base code is the snippet Meta gives you to paste into the site header. It ends with a PageView, and Meta says it “automatically tracks a single PageView” each time it loads (Meta: get started with the Pixel). An app that installs the Pixel runs that code once. The same code pasted into the theme runs it again. Two PageView requests, same id=, every page.
Two Pixel IDs on one page give a different picture. Meta says that once a Pixel ID is initialised, “any subsequent call to track or trackCustom is fired for any Pixel that was previously initialized” (Meta: tracking multiple Pixels). So with an old agency Pixel still on the page, every event goes to both. If you only want one of them to get an event, remove the other Pixel’s code, or send that event with fbq('trackSingle', ...) to the one Pixel ID.
Where does the second copy come from?
On Shopify, read this first. Theme code still runs on storefront pages, but not on the upgraded Thank you page (what replaced the old checkout scripts). So the app plus an old theme copy doubles PageView, ViewContent and AddToCart, not Purchase. A doubled Purchase on Shopify points to Settings, Customer events first (a second app or a custom pixel sending to the same ID), then to Meta’s automatic events. Not to the theme.
The places to look, in the order I usually find them; on Shopify the app-plus-theme pair comes first.
- A platform app plus code in the theme. Shopify’s help is direct: if you added the Pixel by editing your theme code, remove that code before connecting a Pixel through the Facebook & Instagram app, otherwise “your store will have more than one pixel on it” (Shopify Help: Meta pixel). Search the theme files for
fbq(. On WordPress and WooCommerce, check the plugin list for more than one plugin that adds the Pixel, and the header for pasted code. On site builders with a built-in Meta Pixel field (Squarespace, Wix), check the field and the code injection area: an old pasted copy next to the native setting is the same pair. - GTM plus hard-coded base code. A Meta Pixel tag in GTM on All Pages, and the same Pixel ID in the site header. Search the page source and the GTM container for the Pixel ID.
- Two tags in one GTM container. The base code in a Custom HTML tag and a Meta template tag with the same ID, often added by different people a year apart.
- A second app or custom pixel on Shopify. In Settings, Customer events, any custom pixel or app pixel sending to the same Pixel ID as the Facebook & Instagram app. This is the usual Purchase double on a current Shopify store.
- Meta’s automatic events. Your code sends an event that Meta’s automatic events also send. Events Manager’s Diagnostics calls this Duplicate events detected; what Meta says to switch off is in Meta Events Manager diagnostics warnings.
- Single page sites (developer check). The Pixel sends a PageView on browser history changes by itself. Meta documents a
disablePushStatesetting to stop that and says it is “not recommended” (Meta: Pixel for single page applications). With that default left on, a GTM PageView tag on a History Change trigger doubles every route change.
The full map of what each Shopify app sends is in Shopify tracking apps: what each sends.
Why does Purchase fire again on a reload?
If the Purchase call sits on the confirmation page, it runs every time that page loads: a refresh, the back button, a customer opening it again from the order email. One order, several Purchases, spread over hours or days. A single test looks healthy; the refresh in step 4 above catches it.
Tie the event to the order, not the page. Store the order ID when the Purchase is sent and skip the call if that ID was already sent from this browser. On Shopify, a custom pixel that subscribes to checkout_completed avoids this: Shopify says that event is “triggered once for each checkout, typically on the Thank you page”, or on the first upsell offer page when the store runs a post-purchase offer (Shopify: checkout_completed). Run the refresh test on whichever page that is. Shopify doesn’t document which event the Facebook & Instagram app listens to, so check it with the same refresh test. GA4 has its own version of this, with a different answer because GA4 matches transaction_id: GA4 purchase fires again on a thank-you page refresh.
Doesn’t Meta deduplicate this?
Not that Meta documents. Its rules pair a browser event with a server event: the Pixel’s eventID must match the Conversions API’s event_id for the same event name, within 48 hours. For its other matching method, Meta says “If you send us two consecutive browser events with the same information, we do not discard either” (Meta: deduplicate Pixel and server events).
So putting the same eventID on two browser copies is not a documented fix. Removing one sender is.
Which one do you remove?
One install per Pixel ID.
- Shopify: keep the Facebook & Instagram app for most stores. Delete the theme code and any custom pixel sending to the same ID. If you run Meta through GTM instead, take the Pixel out of the app so only one route is left.
- WooCommerce, WordPress and site builders: keep the install that sends Purchase with the right
valueandcurrency, usually the plugin or the native setting. Remove the pasted code or the GTM tag. - Custom sites on GTM: keep the GTM tag, remove the hard-coded base code, and leave one tag in the container sending PageView.
- Single page sites: keep the Pixel’s own history PageView, as Meta recommends, and delete the GTM PageView tag on History Change.
Before deleting a copy, read what it sends. An old theme copy sometimes carries a custom event or a second Pixel ID that something else depends on. Move what you need, then remove it.
If the store also sends server events, check deduplication in the same sitting, because removing a browser copy can change which eventID reaches Meta: How to check Meta Pixel and CAPI deduplication is working.
How do you know it’s fixed?
- One PageView per page load and one Purchase per test order in the Network panel, with the same
id=. Refresh the confirmation page: no second Purchase. - Test events in Events Manager shows one browser Purchase for the test order.
- A closed week later, Purchases in Ads Manager sit at or below your orders for that week. Compare with Ads Manager, not the Events Manager total, which counts events before deduplication.
Past data stays doubled. Put the date you removed the second sender on file, and tell whoever reads return on ad spend that it drops from that day. The lower number is the real one.
If the second sender won’t show itself, or the store runs Pixel, Conversions API and an app at once, send me the Pixel ID and I’ll trace it: Meta Conversions API and Pixel work.
Common questions
Why does my Meta Pixel fire PageView twice?
Usually because the Pixel’s base code runs twice: once from a platform app or GTM tag, once pasted into the site header. Meta’s base code sends one PageView each time it loads, so two copies send two.
Does Meta deduplicate two Pixel events with the same event ID?
Meta doesn’t document it. Its rules match a browser eventID with a server event_id within 48 hours, and for its other method it says two consecutive browser events with the same information are both kept. Remove the second sender instead.
Which Meta Pixel install should I keep on Shopify?
For most stores, the Facebook & Instagram app. Shopify says to remove Pixel code added to the theme before connecting a Pixel through the app, otherwise the store has more than one Pixel. Then check Settings, Customer events for anything else sending to the same Pixel ID.
Why does the Meta Purchase fire again when the order confirmation page is reloaded?
Because the Purchase call is tied to the page, not the order, so every load runs it again. Send it once per order: store the order ID when Purchase is sent and skip the call if it was already sent, or on Shopify use a custom pixel on checkout_completed, which fires once per checkout.
Will removing the duplicate Pixel lower my reported results?
Yes, from that day, and the lower number is the real one. Purchases already counted twice stay counted, so compare from the first full week after the change.
Sources
Read on 19 November 2026:
- Meta for Developers: Meta Ads Data Advisor (formerly Pixel Helper; “There is no duplicate Pixel code on any page”; duplicate events under the Error status; Test events for in-depth troubleshooting), get started with the Meta Pixel (base code in the
<head>; one PageView each time it loads), tracking multiple Pixels (track fires for every initialised Pixel;trackSingle), Pixel for single page applications (PageView on history state changes;disablePushStatenot recommended), deduplicate Pixel and server events (eventIDandevent_idmatched within 48 hours; two consecutive browser events with the same information not discarded) - Shopify Help Center: Meta pixel (remove theme code before adding a Pixel through the app; otherwise more than one Pixel), migrating pixels (multiple requests to the same analytics endpoint in developer tools; leftover Additional scripts or checkout.liquid code)
- Shopify developer docs: checkout_completed (triggered once for each checkout, typically on the Thank you page; on the first upsell offer page with post-purchase offers)