Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Duplicate purchase events from browser and server: how to fix

TRK-338High impactPartlyBy FunnelGuardPublished Updated
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.

How one order becomes two purchases
  1. Customer paysOne order, one thank-you page
  2. Browser pixelPurchase sent, no event_id
  3. Server APIPurchase sent again, different or missing ID
  4. 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

Reported vs real purchases for one weekExample numbers
Reported vs real purchases for one week (example)Orders in shop admin: 100 purchases; Platform, no dedup: 190 purchases; Platform, dedup working: 100 purchases073146100190100Orders in shop adminPlatform, no dedupPlatform, dedup worki…purchases

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

Find out whether purchases are duplicated
  1. 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.

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

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

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

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

Browser: send the order ID as eventID to Meta Pixeljavascript
fbq('track', 'Purchase', {
  value: 59.90,
  currency: 'EUR'
}, { eventID: 'order_10482' });
Server: same ID in a Conversions API payloadjson
{
  "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" }
  }]
}
Set up deduplication on your platform
  1. 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.

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

How to confirm it's fixed

Confirmation checks
  • 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.
Same order, before and after

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

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

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

How: dedupe_key_feedback per conversion event; Meta dataset quality (Stage 22, daily with the site's Meta connection; Meta's answer format to be confirmed on the first real dataset).

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.