On this page
What this issue is
Many stores now send each purchase twice on purpose. The browser sends it through a pixel or tag. The server sends it again through an API, such as the Meta Conversions API, the GA4 Measurement Protocol or a server-side Google Tag Manager container. The goal is better coverage when browsers block scripts.
- Customer paysOne order, one thank-you page
- Browser pixelPurchase sent, no event_id
- Server APIPurchase sent again, different or missing ID
- Platform reportsTwo purchases and double revenue
The browser and the server each report the order, with no shared ID to link them.
Why it costs you leads or sales
Example: a store with 100 real orders sees roughly double in an ad platform when no dedup is in place.
How to check if your site has it
Compare totals with your shop
Pick a recent week. Compare purchases in Meta Ads Manager, GA4 and Google Ads with orders in your store admin. Platform numbers far above real orders point to duplicates.
Check Meta Events Manager
Open Events Manager, choose your pixel or dataset, and look at the Purchase event. The source breakdown shows Browser and Server. Check the deduplication or 'Event match' details. Warnings about missing event_id or low deduplication mean the IDs do not line up.
Test with one order
Place one test order. In Events Manager, open Test Events and see whether the Purchase appears twice, once from the browser and once from the server, and whether the event_id is identical.
Check GA4 transaction IDs
In GA4 Reports, Monetization, Ecommerce purchases, look at transaction IDs. Use Explore with the Transaction ID dimension and look for IDs with an event count above 1, or purchases with '(not set)' as the ID.
Inspect the requests
In browser DevTools, Network tab, find the pixel request (facebook.com/tr) and look for the eid parameter. Then compare it with the event_id your server sends in its API payload.
How to fix it
fbq('track', 'Purchase', {
value: 59.90,
currency: 'EUR'
}, { eventID: 'order_10482' });{
"data": [{
"event_name": "Purchase",
"event_time": 1735689600,
"event_id": "order_10482",
"action_source": "website",
"user_data": { "em": ["<sha256 hashed email>"] },
"custom_data": { "value": 59.90, "currency": "EUR" }
}]
}Check which plugins send purchases
Look at your Meta plugin (for example Meta for WooCommerce), your GA4 plugin and any server-side plugin. Make sure only one tool sends each channel from the browser and one from the server.
Use the plugin's dedup setting
Check that the plugin sends the order ID as event_id on both the pixel and the Conversions API. If it does not, switch plugins or add the ID through a filter in your theme code.
Use one integration
In Settings, Apps and sales channels, review the Facebook and Instagram app and any other pixel app. Running two Conversions API setups at once is a common cause of duplicates.
Remove manual pixel code
If you pasted a Meta pixel into theme code or the checkout customer events area, remove it when the native app already sends Purchase from both sides.
Push the order ID to the data layer
Add the order number to the purchase dataLayer event, for example transaction_id, and create a Data Layer Variable for it.
Pass it as event_id
In the Meta tag, set the Event ID field to that variable. In a server-side container, forward the same value so the server tag uses the same event_id.
Set transaction_id in GA4
In the GA4 purchase event tag, make sure transaction_id is populated from the same variable.
Create the ID once per order
Use your order number or a stored UUID. Save it with the order so the thank-you page and the backend read the same value.
Use it in both calls
Pass it as eventID in the pixel call and as event_id in the API call. Send the server call only once, for example from the order-paid webhook, not on every page reload.
How to confirm it's fixed
- Place one test order and see Purchase from Browser and Server in Meta Test Events with the same event_id.
- Events Manager shows the events as deduplicated, with no missing event_id warnings.
- GA4 shows one purchase per transaction_id.
- After a few days, platform purchase counts sit close to orders in your shop admin.
- Reloading the thank-you page does not create another purchase.
No dedup
- Browser sends Purchase with no ID
- Server sends Purchase with a random ID
- Meta counts two purchases
- ROAS looks inflated
Dedup working
- Both sides send event_id order_10482
- Meta merges them into one purchase
- GA4 keeps one transaction_id
- Counts match the shop admin
How to prevent it happening again
- Keep a written list of every tool that sends purchases and from where.
- Add the event_id and transaction_id requirement to your tracking spec.
- Re-test with one order after changing themes, plugins, checkout or tag containers.
- Compare platform purchases to shop orders every month.
- Review Events Manager diagnostics for dedup warnings after each release.
How FunnelGuard handles this
Questions people ask
Why is Meta counting my purchases twice?
Most often the browser pixel and the Conversions API both send the purchase, and they do not share the same event_id. Meta then treats them as two events. Send the same event name and the same event_id from both sides.
How does Meta deduplicate browser and server events?
Meta matches events that have the same event name and the same event_id, one from the browser and one from the server. It keeps one and discards the other. The server event should arrive within 48 hours of the browser event.
What should I use as the event_id for a purchase?
Use something unique per order that both the browser and server can read, such as the order number or a UUID stored with the order. Do not generate a new random value on each side, because the IDs will not match.
How do I stop GA4 counting the same transaction twice?
Send a unique transaction_id with every purchase event. GA4 uses it to ignore repeat purchase events carrying the same ID. Also avoid sending the purchase from two different sources without that ID.
Do I need both the pixel and the Conversions API?
Not required, but Meta recommends using both for better coverage when browsers block scripts. If you use both, you must set up deduplication. If you only use one, there is nothing to deduplicate.
Why do my Ads Manager purchases not match my shop orders?
Duplicates from browser and server are one common cause. Others include attribution windows, refunds, tags counting the same order twice, and test orders. Compare against Events Manager source breakdowns to see if duplicates are involved.
Can refreshing the thank-you page create duplicate purchases?
Yes. If the purchase tag fires on every page load, a refresh or revisit sends it again. Fire it once per order, for example by storing a flag for the order ID, and keep transaction_id set so GA4 can ignore repeats.
Does FunnelGuard detect duplicate purchases?
No, not yet. It is a possible future check. FunnelGuard currently checks that journey steps and tracking hits happen, so you should compare platform and shop totals manually for duplicates.
Related issues
- TRK-337Same conversion counted by multiple tags (GA4 + Ads import + Ads tag)Fix guide
- TRK-342Value differs between GA4, Meta and Ads for the same orderFix guide
- TRK-344Test orders/leads counted as real conversionsFix guide
- TRK-354Revenue double-counted for subscriptions renewals and initial orderFix guide
- TRK-339Conversion fires on each step of multi-step formFix guide
- TRK-341Value multiplied (cents vs units)Fix guide