Server-Side Tagging9 min read
Meta Pixel and Conversions API Duplicate Events: How Deduplication Works and How to Fix It
If Meta shows more purchases or leads than you actually got, the browser Pixel and the Conversions API are probably both counting the same action. Here is how Meta decides that two events are the same, why that check fails on real sites, and how to fix it.
What deduplication means in Meta
A browser event and a server event are separate requests that reach Meta at different moments. Deduplication is Meta's check that decides whether two of them are the same real-world action. If they are, Meta keeps one and discards the other. If they aren't recognised as the same, both are counted.
Meta documents two ways to make that match: an event ID that you send with both copies, or a combination of the browser ID (fbp) and your own customer ID (external_id). The first method is the one Meta lists with required parameters, and it is the one we use on every setup.
Method 1: the same event name and the same event ID
Meta's deduplication page sets two conditions. The Pixel event name must match the Conversions API event_name, and the Pixel eventID must match the Conversions API event_id. On the Pixel, the ID goes in the fourth argument of the fbq call. On the server, it is the event_id field.
Meta then deduplicates within 48 hours of receiving the first event with a given event_id: later events with the same name and ID are discarded. When the two copies don't differ meaningfully, Meta says it generally prefers the one received first. Meta's server event reference adds one detail: if the browser and server copies arrive within about five minutes of each other, it favours the browser copy.
The ID has to be created once and shared by both sides. An order number, a lead ID from your form or CRM, or a random ID generated once on the page and pushed to the dataLayer all work. What doesn't work is generating a new random value in the browser and another one on the server.
// The fourth argument carries the event ID.
fbq('track', 'Purchase',
{ value: 129.00, currency: 'USD' },
{ eventID: 'order-10482' }
);The matching server event
The server copy uses the same name and the same ID. Meta lists action_source as required for all events, and for website events it should be "website". The event_time is a Unix timestamp in seconds. Meta's server event reference says event_time can be up to 7 days before you send the event, and that one event older than 7 days makes Meta reject the whole request.
Personal data in user_data, such as email and phone, must be normalised and hashed with SHA-256 before you send it. The fbp value comes from the _fbp cookie and is sent as it is.
{
"data": [
{
"event_name": "Purchase",
"event_time": 1796032800,
"event_id": "order-10482",
"action_source": "website",
"event_source_url": "https://example.com/checkout/thank-you",
"user_data": {
"em": ["<sha256 of normalised email>"],
"external_id": ["<sha256 of your customer ID>"],
"fbp": "<value of the _fbp cookie>",
"client_ip_address": "203.0.113.10",
"client_user_agent": "Mozilla/5.0 (...)"
},
"custom_data": { "value": 129.00, "currency": "USD" }
}
]
}Method 2: fbp and external_id
Meta's alternative is to send the same event_name with fbp and/or external_id consistently on both the browser and server copies. It has two limits that Meta states plainly: it only deduplicates events that arrive from the browser first and then from the server, and it does nothing when you only use one source.
Because a server event often reaches Meta before the browser event (for example when the browser is slow or the Pixel is blocked and fires late), we don't rely on this method alone. Meta's best-practices page asks for event_id and external_id on all events anyway, so sending both costs nothing and covers both methods.
Why deduplication fails on real sites
When a client tells us Meta shows roughly twice the conversions their store or CRM shows, the cause is almost always one of the problems below. They are listed in the order we check them.
- Look at one real conversion in Meta's Test Events tool and confirm that the browser and server copies carry the same event ID.
- Compare the event names character by character. Meta's pages say the names must match; treat a different spelling or capitalisation as a different event.
- Check how late your server sends events. A server copy sent more than 48 hours after the first copy falls outside the deduplication window.
- Count how many times the Pixel loads on the page. More than one base code (theme, plugin and GTM) means more than one browser event.
- Reload the thank-you page and see whether the purchase fires again.
How to check your fix
Meta's best-practices page points to the Test Events tool in Events Manager for this: you can see which events were processed and which were deduplicated. Place a real test order or lead, open Test Events, and confirm you see one browser event and one server event for it, with the same name and ID, and that Meta marks the pair as deduplicated.
After that, compare a few days of Meta's reported purchases or leads with the real count in your store or CRM. They will rarely match exactly, because Meta attributes by its own windows and models, but a gap close to 2 to 1 means the duplicates are still there.
Sources
Every rule in this guide comes from Meta's developer documentation, checked on 30 November 2026. Meta updates these pages, so check them again before you change a live setup.
Related: Meta: Handling duplicate Pixel and Conversions API events · Meta: Conversions API best practices · Meta: Server event parameters
Problems and fixes
The six causes we find most often when Meta counts a conversion twice.
1The browser and server create their own IDs
- Symptom
- Both copies arrive in Test Events but are never marked as deduplicated.
- Cause
- Each side generates a random ID, so the two values never match.
- Fix
- Create the ID once (order ID, lead ID, or one random value pushed to the dataLayer) and pass that same value to the Pixel eventID and the server event_id.
2Event names don't match
- Symptom
- Meta shows Purchase from the browser and purchase or CompletePayment from the server.
- Cause
- Different tags or plugins name the same action differently.
- Fix
- Use one exact name on both sides. For standard events use Meta's spelling, for example Purchase and Lead.
3Server events are sent too late
- Symptom
- Duplicates appear mainly for orders that are processed in batches or confirmed days later.
- Cause
- Meta deduplicates within 48 hours of the first event with that ID.
- Fix
- Send the server event as soon as the action happens. If an event must be sent later, send it only from the server.
4The Pixel is installed more than once
- Symptom
- Pixel Helper or Test Events shows two browser events for one action.
- Cause
- Base code in the theme plus a plugin or a GTM tag.
- Fix
- Keep one installation. Remove the others and test again.
5The thank-you page fires again on reload
- Symptom
- Extra purchases appear when customers refresh or revisit the confirmation page.
- Cause
- The purchase tag fires on every page view of the confirmation page.
- Fix
- Use the order ID as the event ID and record which order IDs have already fired (for example in the browser's storage), so the tag runs once per order.
6Only the fbp method is used
- Symptom
- Some server events are counted even though a browser event exists.
- Cause
- The fbp and external_id method only works when the browser event arrives first.
- Fix
- Add an event ID to both copies, and keep sending fbp and external_id as well.
Step-by-step: set up deduplication correctly
This is the order we follow on client sites, whether the server side runs through server-side Google Tag Manager, a platform integration or custom code.
Step 1Choose one ID per action
For purchases, use the order ID. For leads, use the lead or submission ID from your form or CRM. If neither exists in the browser, generate one random ID when the action happens and push it to the dataLayer with the event.
Step 2Send it with the Pixel event
Pass the ID as eventID in the fourth argument of fbq('track', ...). In Google Tag Manager, read it from the dataLayer and map it to the event ID field of your Meta tag.
Step 3Send the same ID and name from the server
Set event_id to the same value and event_name to exactly the same name. Add action_source "website", event_source_url and an event_time in seconds.
Step 4Add the matching keys
Send fbp from the _fbp cookie, external_id (hashed) and the hashed customer details you are allowed to share. This improves matching and covers Meta's second deduplication method.
Step 5Test with a real action
Use Test Events in Events Manager. Confirm one browser event and one server event with the same name and ID, marked as deduplicated.
Step 6Compare with your source of truth
After a few days, compare Meta's numbers with your store or CRM. Expect some difference from attribution, but not a doubling.
Implementation Checklist
Verify each milestone before deploying changes to live production ad accounts.
- ✓One ID per action, created once
- ✓Pixel eventID and server event_id are identical
- ✓Event names are identical on both sides
- ✓Server events sent within 48 hours of the browser event
- ✓fbp and hashed external_id sent with server events
- ✓Only one Pixel installation on the site
- ✓Thank-you page fires once per order
- ✓Verified in Test Events with a real action
Frequently asked questions
Does Meta remove duplicate Pixel and Conversions API events automatically?
Only when it can match them. The event names must match, and either the event ID or the fbp and external_id values must be the same on both copies. Without those, both events are counted.
How long does Meta wait to deduplicate events?
Meta's documentation says it deduplicates within 48 hours of receiving the first event with a given event_id.
Should I remove the Pixel once the Conversions API is working?
No. Meta's best practices recommend using the Conversions API in addition to the Pixel and sending the same events through both, with deduplication set up.
Which copy does Meta keep, the browser or the server event?
Meta says it generally prefers the event received first. Its server event reference adds that when the two arrive within about five minutes of each other, it favours the browser event.
Can I send a conversion to the Conversions API days later?
The event_time can be up to 7 days in the past. If any event in a request is older than that, Meta rejects the whole request. Remember that deduplication only covers 48 hours.
Need a hand with this?
Want us to set this up for you?
This is the kind of work we do for clients every week. Tell us about your setup and we'll take it from there.
Keep reading
How to Import GA4 Key Events into Google Ads as Conversions, and the Settings That Decide What Bidding Sees
Google Ads can use your GA4 key events as conversions, but the import has prerequisites, a default that keeps new actions out of bidding, and settings that only one of the two tools can change. This guide walks through it from Google's help pages.
Stripe Checkout Conversion Tracking: Recording Purchases in GA4, Google Ads and Meta When Buyers Don't Return
Stripe says customers aren't guaranteed to reach your success page, so a purchase tag on that page will miss sales. This guide explains, from Stripe's and Google's documentation, how to track Stripe purchases reliably with webhooks and server-side events.
GoHighLevel All-in-One Platform: Every Feature, the Real Monthly Cost, and How to Set It Up (2026)
Most small businesses and agencies pay for a CRM, a funnel builder, an email tool, a scheduler, an SMS app and a review tool, then copy leads between them by hand. This guide walks through every part of GoHighLevel, what it really costs per month with usage, how it compares with ClickFunnels and Kajabi, and a 14-step setup from free trial to tracked ads.